Waybar : Fix group paddings.

This commit is contained in:
Dmitry Voronin 2024-09-13 23:57:09 +03:00
parent b9eaa1467d
commit 673a7ff83c
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
3 changed files with 14 additions and 4 deletions

View file

@ -3,11 +3,11 @@
paddingH = "12px"; paddingH = "12px";
in { in {
# ISSUE: https://github.com/Alexays/Waybar/issues/3303 # ISSUE: https://github.com/Alexays/Waybar/issues/3303
# This way I am forced to apply the padding to children of each group
# instead of the whole group.
text = '' text = ''
#batteryinfo,
#clock, #clock,
#custom-display, #custom-display,
#hardware,
#language, #language,
#mpris, #mpris,
#pulseaudio, #pulseaudio,
@ -18,6 +18,16 @@ in {
border-bottom: ${toString config.style.window.border}px solid transparent; border-bottom: ${toString config.style.window.border}px solid transparent;
} }
#cpu,
#battery {
padding-left: ${paddingH};
}
#custom-powersave,
#custom-powerlimit {
padding-right: ${paddingH};
}
#clock { #clock {
font-weight: bold; font-weight: bold;
} }

View file

@ -20,7 +20,7 @@
} }
function widget() { function widget() {
status || echo -n "" status && printf '' || printf ''
} }
function status() { function status() {

View file

@ -14,7 +14,7 @@
} }
function widget() { function widget() {
status || echo -n "󰓅" status && printf '' || printf '󰓅'
} }
function status() { function status() {