waybar: finally square centered modules

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-07-29 14:12:04 +03:00
parent bf506d6efc
commit f396990585

View File

@@ -15,7 +15,7 @@ in {
};
settings.bottom = {
position = "bottom";
height = 33;
height = 34;
spacing = 0;
margin-left = 36 + 3;
margin-right = 36 + 3;
@@ -25,17 +25,17 @@ in {
"wlr/taskbar"
];
modules-right = [
"clock"
"niri/workspaces"
"clock"
"niri/language"
];
"niri/workspaces" = {
format = "{index}";
};
"niri/language" = {
format = "{}";
format-en = "🇺🇸";
format-uk = "🇺🇦";
format = "{short}";
# format-en = "🇺🇸";
# format-uk = "🇺🇦";
};
clock = {
format = "{:%R}";
@@ -58,7 +58,7 @@ in {
};
settings.top = {
position = "top";
height = 33;
height = 34;
spacing = 0;
margin-left = 36 + 3;
margin-right = 36 + 3;
@@ -73,6 +73,7 @@ in {
"cpu"
"memory"
"wireplumber"
"wireplumber#source"
(ifLaptop "group/laptop")
"idle_inhibitor"
];
@@ -148,12 +149,19 @@ in {
};
};
wireplumber = {
scroll-step = 3;
format = "{volume}% {icon}";
format-muted = "󰖁";
format-icons = ["󰕿" "󰖀" "󰕾"];
on-click = lib.getExe pkgs.pwvucontrol;
on-click-right = "wpctl set-mute @DEFAULT_SINK@ toggle";
scroll-step = 3;
};
"wireplumber#source" = {
node-type = "Audio/Source";
format = "{volume}% 󰍬";
format-muted = "󰍭";
on-click-right = "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle";
scroll-step = 3;
};
"custom/notification" = {
tooltip = false;
@@ -323,7 +331,7 @@ in {
#taskbar button,
#workspaces button {
border-radius: 6px;
min-width: 1.4em;
min-width: 1.35em;
padding: 0;
}
@@ -339,13 +347,9 @@ in {
margin-right: 0;
}
#taskbar button {
padding-left: 0;
}
#taskbar button {
padding: 0 0.4em;
margin: 3px;
margin: 3px 3px 3px 0;
}
#taskbar button.active,
@@ -374,6 +378,7 @@ in {
-gtk-icon-effect: dim;
}
#taskbar,
#workspaces {
padding-left: 3px;
}