Waybar: Fix paddings.

This commit is contained in:
Dmitry Voronin 2024-11-19 00:27:40 +03:00
parent 1e4d09af82
commit 71bb213716
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
3 changed files with 31 additions and 14 deletions

View file

@ -92,8 +92,10 @@ in {
"group/batteryinfo" = { "group/batteryinfo" = {
orientation = "horizontal"; orientation = "horizontal";
modules = [ modules = [
"custom/tagbat1"
"battery" "battery"
"custom/powerlimit" "custom/powerlimit"
"custom/tagbat2"
]; ];
}; };
pulseaudio = { pulseaudio = {
@ -125,14 +127,21 @@ in {
"paused" = ""; "paused" = "";
}; };
}; };
cpu = { "cpu#usage" = {
format = "{usage}% ({load})"; format = "{usage}%";
interval = refreshInterval; interval = refreshInterval;
on-click = "foot -e bash -c btop"; on-click = "foot -e bash -c btop";
on-click-right = "powersave toggle"; on-click-right = "powersave toggle";
states.critical = 100; states.critical = 100;
tooltip = false; tooltip = false;
}; };
"cpu#load" = {
format = "({load})";
interval = refreshInterval;
on-click = "foot -e bash -c btop";
on-click-right = "powersave toggle";
tooltip = false;
};
memory = { memory = {
format = "{percentage}%"; format = "{percentage}%";
interval = refreshInterval; interval = refreshInterval;
@ -160,12 +169,13 @@ in {
"group/hardware" = { "group/hardware" = {
orientation = "horizontal"; orientation = "horizontal";
modules = [ modules = [
"custom/tag1" "custom/taghw1"
"cpu" "cpu#usage"
"cpu#load"
"temperature" "temperature"
"memory" "memory"
"custom/powersave" "custom/powersave"
"custom/tag2" "custom/taghw2"
]; ];
}; };
"custom/display" = { "custom/display" = {
@ -176,10 +186,16 @@ in {
return-type = "json"; return-type = "json";
signal = 4; signal = 4;
}; };
"custom/tag1" = { "custom/taghw1" = {
exec = "echo "; exec = "echo ";
}; };
"custom/tag2" = { "custom/taghw2" = {
exec = "echo ";
};
"custom/tagbat1" = {
exec = "echo ";
};
"custom/tagbat2" = {
exec = "echo "; exec = "echo ";
}; };
}; };

View file

@ -10,13 +10,13 @@ in {
# instead of the whole group. # instead of the whole group.
text = '' text = ''
/* See the ISSUE above. */ /* See the ISSUE above. */
#custom-tag1, #custom-taghw1,
#battery { #custom-tagbat1 {
padding-left: ${paddingH}; padding-left: ${paddingH};
} }
#custom-tag2, #custom-taghw2,
#custom-powerlimit { #custom-tagbat2 {
padding-right: ${paddingH}; padding-right: ${paddingH};
} }
@ -32,6 +32,7 @@ in {
} }
/* Padding for combined widgets. */ /* Padding for combined widgets. */
#cpu.load,
#custom-powerlimit, #custom-powerlimit,
#custom-powersave, #custom-powersave,
#memory, #memory,
@ -55,7 +56,7 @@ in {
/* Critical state. */ /* Critical state. */
#battery, #battery,
#cpu, #cpu.usage,
#custom-display, #custom-display,
#memory, #memory,
#pulseaudio, #pulseaudio,
@ -66,7 +67,7 @@ in {
} }
#battery.critical, #battery.critical,
#cpu.critical, #cpu.usage.critical,
#custom-display.modified, #custom-display.modified,
#memory.critical, #memory.critical,
#pulseaudio.muted, #pulseaudio.muted,

View file

@ -11,7 +11,7 @@
module = { module = {
builder.client.enable = true; builder.client.enable = true;
display.primary = "DSI-1"; display.primary = "eDP-1";
package.extra = true; package.extra = true;
powerlimit.thinkpad.enable = true; powerlimit.thinkpad.enable = true;
print.enable = true; print.enable = true;