Waybar: power profiles and better style

This commit is contained in:
Filippo Berto 2025-03-21 11:35:19 +01:00
parent b3c200d55f
commit 72f86cb2eb
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED

View file

@ -44,9 +44,10 @@ in
"cpu" "cpu"
"memory" "memory"
"temperature" "temperature"
"keyboard-state"
"backlight" "backlight"
"idle_inhibitor" "idle_inhibitor"
"power-profiles-daemon"
"keyboard-state"
"battery" "battery"
# "battery#bat2" # "battery#bat2"
"clock" "clock"
@ -74,14 +75,14 @@ in
"keyboard-state" = { "keyboard-state" = {
# "numlock" = true; # "numlock" = true;
"capslock" = true; "capslock" = true;
"format" = "{name} {icon}"; "format" = "{icon}";
"format-icons" = { "format-icons" = {
"locked" = ""; "locked" = "";
"unlocked" = ""; "unlocked" = "";
}; };
}; };
"idle_inhibitor" = { "idle_inhibitor" = {
"format" = "{status} {icon}"; "format" = "{icon}";
"format-icons" = { "format-icons" = {
"activated" = ""; "activated" = "";
"deactivated" = ""; "deactivated" = "";
@ -119,17 +120,16 @@ in
"backlight" = { "backlight" = {
# "device"= "acpi_video1"; # "device"= "acpi_video1";
"format" = "{percent}% {icon}"; "format" = "{percent}% {icon}";
"format-icons" = [ "format-icons" = [ "" "" "" "" "" "" "" "" "" ];
"" };
"" "power-profiles-daemon" = {
"" "format" = "{icon}";
"" "format-icons" = {
"" "default" = "";
"" "performance" = "";
"" "balanced" = "";
"" "power-saver" = "󰌪";
"" };
];
}; };
"battery" = { "battery" = {
"states" = { "states" = {
@ -143,13 +143,7 @@ in
"format-alt" = "{time} {icon}"; "format-alt" = "{time} {icon}";
# "format-good"= ""; # An empty format will hide the module # "format-good"= ""; # An empty format will hide the module
# "format-full"= ""; # "format-full"= "";
"format-icons" = [ "format-icons" = [ "" "" "" "" "" ];
""
""
""
""
""
];
}; };
# "battery#bat2" = { "bat" = "BAT2"; }; # "battery#bat2" = { "bat" = "BAT2"; };
"network" = { "network" = {
@ -176,11 +170,7 @@ in
"phone" = ""; "phone" = "";
"portable" = ""; "portable" = "";
"car" = ""; "car" = "";
"default" = [ "default" = [ "" "" "" ];
""
""
""
];
}; };
"on-click" = "${pkgs.pavucontrol}/bin/pavucontrol"; "on-click" = "${pkgs.pavucontrol}/bin/pavucontrol";
@ -239,7 +229,7 @@ in
font-size: 10px; font-size: 10px;
margin: 0px 5px; margin: 0px 5px;
} }
#tray, #pulseaudio label, #network, #language, #custom-notification, #cpu, #memory, #temperature, #keyboard-state label, #backlight, #battery, #battery#bat2, #clock, #idle_inhibitor { #tray, #pulseaudio label, #network, #language, #custom-notification, #cpu, #memory, #temperature, #keyboard-state, #backlight, #battery, #battery#bat2, #clock, #idle_inhibitor, #power-profiles-daemon {
color: ${custom.foreground}; color: ${custom.foreground};
border-radius: 0.5em; border-radius: 0.5em;
padding: 0.5em; padding: 0.5em;