niri/waybar: initial rework

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-06-30 18:28:59 +03:00
parent 7c72e527e7
commit e30f4a74cd

View File

@ -14,8 +14,8 @@
settings.bar-0 = { settings.bar-0 = {
# layer = "top"; # layer = "top";
position = "bottom"; position = "bottom";
height = 24; height = 36;
spacing = 6; spacing = 0;
margin-left = 33 + 3; margin-left = 33 + 3;
margin-right = 33 + 3; margin-right = 33 + 3;
margin-bottom = 3; margin-bottom = 3;
@ -96,7 +96,7 @@
}; };
}; };
"tray" = { "tray" = {
icon-size = 20; icon-size = 24;
spacing = 6; spacing = 6;
}; };
"clock" = { "clock" = {
@ -188,7 +188,7 @@
}; };
"wlr/taskbar" = { "wlr/taskbar" = {
format = "{icon}"; format = "{icon}";
icon-size = 18; icon-size = 24;
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";
@ -235,9 +235,8 @@
border-top-right-radius: 0px; */ border-top-right-radius: 0px; */
background-color: @base00; background-color: @base00;
border-radius: 24px; border-radius: 24px;
border: 3px solid @base0D; /* border: 3px solid @base0D; */
color: @base05; color: @base05;
padding: 0 3px;
} }
tooltip { tooltip {
background: @base01; background: @base01;
@ -267,31 +266,66 @@
#language, #language,
#power-profiles-daemon, #power-profiles-daemon,
#privacy-item, #privacy-item,
#taskbar button,
#taskbar, #taskbar,
#wireplumber, #wireplumber,
#workspaces button { #workspaces button,
padding: 0 6px; #clock,
} #language,
#backlight, #taskbar,
#custom-notification, #tray,
#privacy,
#idle_inhibitor, #idle_inhibitor,
#tray button { #custom-notification,
padding: 0 6px 0 0; #workspaces {
margin: 0 6px 0 0; border-radius: 24px;
} background-color: @base01;
#power-profiles-daemon { margin: 3px 3px 3px 0;
padding: 0 6px; padding: 0 6px;
margin: 0 6px; }
#taskbar,
#workspaces {
padding: 0;
}
#privacy {
padding: 0 2px;
}
#language,
#clock,
#wireplumber {
margin: 3px;
}
#tray button,
#workspaces button {
padding: 0 4px;
margin: 3px;
}
#tray button {
padding: 0 6px;
margin: 3px;
}
#taskbar button {
padding: 0;
margin: 3px;
}
#wireplumber,
#idle_inhibitor,
#custom-notification {
padding: 0 14px 0 10px;
}
#backlight {
padding: 0 8px;
} }
#workspaces button.active { #workspaces button.active {
color: @base0D; color: @base00;
background-color: @base0D;
} }
#taskbar button:hover { #taskbar button:hover {
box-shadow: transparent; background-color: @base0D;
} }
#taskbar.empty, #taskbar.empty,
window#empty { window#empty {
padding: 0;
margin: 0;
background-color: transparent; background-color: transparent;
} }
#battery.critical:not(.charging) { #battery.critical:not(.charging) {