Waybar : Fix group paddings.
This commit is contained in:
parent
b9eaa1467d
commit
673a7ff83c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function widget() {
|
function widget() {
|
||||||
status || echo -n ""
|
status && printf '' || printf ''
|
||||||
}
|
}
|
||||||
|
|
||||||
function status() {
|
function status() {
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function widget() {
|
function widget() {
|
||||||
status || echo -n ""
|
status && printf '' || printf ''
|
||||||
}
|
}
|
||||||
|
|
||||||
function status() {
|
function status() {
|
||||||
|
|
Loading…
Reference in a new issue