waybar: finally square centered modules
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@@ -15,7 +15,7 @@ in {
|
|||||||
};
|
};
|
||||||
settings.bottom = {
|
settings.bottom = {
|
||||||
position = "bottom";
|
position = "bottom";
|
||||||
height = 33;
|
height = 34;
|
||||||
spacing = 0;
|
spacing = 0;
|
||||||
margin-left = 36 + 3;
|
margin-left = 36 + 3;
|
||||||
margin-right = 36 + 3;
|
margin-right = 36 + 3;
|
||||||
@@ -25,17 +25,17 @@ in {
|
|||||||
"wlr/taskbar"
|
"wlr/taskbar"
|
||||||
];
|
];
|
||||||
modules-right = [
|
modules-right = [
|
||||||
"clock"
|
|
||||||
"niri/workspaces"
|
"niri/workspaces"
|
||||||
|
"clock"
|
||||||
"niri/language"
|
"niri/language"
|
||||||
];
|
];
|
||||||
"niri/workspaces" = {
|
"niri/workspaces" = {
|
||||||
format = "{index}";
|
format = "{index}";
|
||||||
};
|
};
|
||||||
"niri/language" = {
|
"niri/language" = {
|
||||||
format = "{}";
|
format = "{short}";
|
||||||
format-en = "🇺🇸";
|
# format-en = "🇺🇸";
|
||||||
format-uk = "🇺🇦";
|
# format-uk = "🇺🇦";
|
||||||
};
|
};
|
||||||
clock = {
|
clock = {
|
||||||
format = "{:%R}";
|
format = "{:%R}";
|
||||||
@@ -58,7 +58,7 @@ in {
|
|||||||
};
|
};
|
||||||
settings.top = {
|
settings.top = {
|
||||||
position = "top";
|
position = "top";
|
||||||
height = 33;
|
height = 34;
|
||||||
spacing = 0;
|
spacing = 0;
|
||||||
margin-left = 36 + 3;
|
margin-left = 36 + 3;
|
||||||
margin-right = 36 + 3;
|
margin-right = 36 + 3;
|
||||||
@@ -73,6 +73,7 @@ in {
|
|||||||
"cpu"
|
"cpu"
|
||||||
"memory"
|
"memory"
|
||||||
"wireplumber"
|
"wireplumber"
|
||||||
|
"wireplumber#source"
|
||||||
(ifLaptop "group/laptop")
|
(ifLaptop "group/laptop")
|
||||||
"idle_inhibitor"
|
"idle_inhibitor"
|
||||||
];
|
];
|
||||||
@@ -148,12 +149,19 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
wireplumber = {
|
wireplumber = {
|
||||||
scroll-step = 3;
|
|
||||||
format = "{volume}% {icon}";
|
format = "{volume}% {icon}";
|
||||||
format-muted = "";
|
format-muted = "";
|
||||||
format-icons = ["" "" ""];
|
format-icons = ["" "" ""];
|
||||||
on-click = lib.getExe pkgs.pwvucontrol;
|
on-click = lib.getExe pkgs.pwvucontrol;
|
||||||
on-click-right = "wpctl set-mute @DEFAULT_SINK@ toggle";
|
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" = {
|
"custom/notification" = {
|
||||||
tooltip = false;
|
tooltip = false;
|
||||||
@@ -323,7 +331,7 @@ in {
|
|||||||
#taskbar button,
|
#taskbar button,
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
min-width: 1.4em;
|
min-width: 1.35em;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -339,13 +347,9 @@ in {
|
|||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#taskbar button {
|
|
||||||
padding-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#taskbar button {
|
#taskbar button {
|
||||||
padding: 0 0.4em;
|
padding: 0 0.4em;
|
||||||
margin: 3px;
|
margin: 3px 3px 3px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#taskbar button.active,
|
#taskbar button.active,
|
||||||
@@ -374,6 +378,7 @@ in {
|
|||||||
-gtk-icon-effect: dim;
|
-gtk-icon-effect: dim;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#taskbar,
|
||||||
#workspaces {
|
#workspaces {
|
||||||
padding-left: 3px;
|
padding-left: 3px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user