niri/waybar: polished

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-06-30 22:12:37 +03:00
parent e30f4a74cd
commit 2093304e4c

View File

@ -24,12 +24,12 @@
"niri/language" "niri/language"
"niri/workspaces" "niri/workspaces"
"wlr/taskbar" "wlr/taskbar"
"privacy"
]; ];
modules-center = ["clock"]; modules-center = ["clock"];
modules-right = [ modules-right = [
"wireplumber" "wireplumber"
(ifLaptop "group/laptop") (ifLaptop "group/laptop")
"privacy"
"tray" "tray"
"idle_inhibitor" "idle_inhibitor"
"custom/notification" "custom/notification"
@ -96,7 +96,7 @@
}; };
}; };
"tray" = { "tray" = {
icon-size = 24; icon-size = 20;
spacing = 6; spacing = 6;
}; };
"clock" = { "clock" = {
@ -172,8 +172,8 @@
escape = true; escape = true;
}; };
"privacy" = { "privacy" = {
icon-spacing = 2; icon-spacing = 0;
icon-size = 16; icon-size = 18;
transition-duration = 250; transition-duration = 250;
screenshare = { screenshare = {
type = "screenshare"; type = "screenshare";
@ -188,7 +188,7 @@
}; };
"wlr/taskbar" = { "wlr/taskbar" = {
format = "{icon}"; format = "{icon}";
icon-size = 24; icon-size = 20;
icon-theme = "${config.dconf.settings."org/gnome/desktop/interface".icon-theme}"; icon-theme = "${config.dconf.settings."org/gnome/desktop/interface".icon-theme}";
tooltip-format = "{title}"; tooltip-format = "{title}";
on-click = "activate"; on-click = "activate";
@ -217,12 +217,8 @@
font-weight: 500; font-weight: 500;
font-size: 18px; font-size: 18px;
} }
window#waybar { window#waybar,
background-color: transparent; .modules-center,
}
.modules-center {
background-color: transparent;
}
.mpris.stopped { .mpris.stopped {
background-color: transparent; background-color: transparent;
} }
@ -241,6 +237,7 @@
tooltip { tooltip {
background: @base01; background: @base01;
border: 1px solid @base0E; border: 1px solid @base0E;
border-radius: 24px;
} }
tooltip label { tooltip label {
color: @base05; color: @base05;
@ -265,36 +262,28 @@
#idle_inhibitor, #idle_inhibitor,
#language, #language,
#power-profiles-daemon, #power-profiles-daemon,
#privacy,
#privacy-item, #privacy-item,
#taskbar, #taskbar,
#tray,
#wireplumber, #wireplumber,
#workspaces button, #workspaces button,
#clock,
#language,
#taskbar,
#tray,
#privacy,
#idle_inhibitor,
#custom-notification,
#workspaces { #workspaces {
border-radius: 24px; border-radius: 24px;
background-color: @base01; background-color: @base01;
margin: 3px 3px 3px 0; margin: 3px 3px 3px 0;
padding: 0 6px; padding: 0 6px;
} }
#taskbar, /* left modules */
#workspaces {
padding: 0;
}
#privacy {
padding: 0 2px;
}
#language, #language,
#clock, #clock,
#wireplumber { #wireplumber {
margin: 3px; margin: 3px;
} }
#tray button, #taskbar button {
padding: 0 2px;
margin: 3px;
}
#workspaces button { #workspaces button {
padding: 0 4px; padding: 0 4px;
margin: 3px; margin: 3px;
@ -303,24 +292,23 @@
padding: 0 6px; padding: 0 6px;
margin: 3px; margin: 3px;
} }
#taskbar button { #privacy-item {
padding: 0; padding: 0 4px;
margin: 3px;
} }
#wireplumber, #backlight,
#battery,
#custom-notification,
#idle_inhibitor, #idle_inhibitor,
#custom-notification { #wireplumber {
padding: 0 14px 0 10px; padding: 0 14px 0 10px;
} }
#backlight { #power-profiles-daemon {
padding: 0 8px; padding: 0 16px 0 8px;
} }
#workspaces button.active { #privacy,
color: @base00; #taskbar,
background-color: @base0D; #workspaces {
} padding: 0;
#taskbar button:hover {
background-color: @base0D;
} }
#taskbar.empty, #taskbar.empty,
window#empty { window#empty {
@ -328,8 +316,16 @@
margin: 0; margin: 0;
background-color: transparent; background-color: transparent;
} }
#taskbar button:hover {
background-color: @base0D;
}
#workspaces button.active {
color: @base00;
background-color: @base0D;
}
#battery.critical:not(.charging) { #battery.critical:not(.charging) {
color: @base09; background-color: @base09;
color: @base00;
animation-name: blink; animation-name: blink;
animation-duration: 0.5s; animation-duration: 0.5s;
animation-timing-function: steps(12); animation-timing-function: steps(12);
@ -337,13 +333,15 @@
animation-direction: alternate; animation-direction: alternate;
} }
#power-profiles-daemon.performance { #power-profiles-daemon.performance {
color: @base0D; background-color: @base0D;
color: @base00;
} }
#power-profiles-daemon.balanced { #power-profiles-daemon.balanced {
color: @base0B; color: @base05;
} }
#power-profiles-daemon.power-saver { #power-profiles-daemon.power-saver {
color: @base0A; background-color: @base0A;
color: @base00;
} }
label:focus { label:focus {
background-color: #000000; background-color: #000000;
@ -356,10 +354,14 @@
background-color: @base08; background-color: @base08;
} }
#privacy-item.screenshare { #privacy-item.screenshare {
color: @base0C; background-color: @base0C;
color: @base00;
margin: 3px 0 3px 3px;
} }
#privacy-item.audio-in { #privacy-item.audio-in {
color: @base0E; background-color: @base0E;
color: @base00;
margin: 3px;
} }
''; '';
} }