Add idle inhibitor to waybar

This commit is contained in:
Pedro Rey Anca 2025-02-05 19:17:24 +01:00
parent c1879671fc
commit cdbfa56130
Signed by: peprolinbot
GPG key ID: 053EA6E00116533A
2 changed files with 19 additions and 1 deletions

View file

@ -45,6 +45,7 @@
++ [
"pulseaudio"
"battery"
"idle_inhibitor"
"network"
"custom/notification"
"clock"
@ -147,6 +148,16 @@
tooltip = true;
tooltip-format = "{time}";
};
idle_inhibitor = {
format = "{icon}";
format-icons = {
activated = " ";
deactivated = " ";
};
timeout = 30;
};
"custom/launcher" = {
format = "";
on-click = "pkill fuzzel || fuzzel";

View file

@ -60,7 +60,7 @@
}
#tray, #pulseaudio, #network, #cpu, #memory, #disk,
#custom-playerctl.backward, #custom-playerctl.play, #custom-playerctl.forward, #battery, #custom-notification {
#custom-playerctl.backward, #custom-playerctl.play, #custom-playerctl.forward, #battery, #idle_inhibitor, #custom-notification {
background: #${custom.palette.tertiary_background_hex};
font-weight: bold;
margin: 5px 0px;
@ -108,6 +108,13 @@
padding-right: 9px;
}
#idle_inhibitor {
color: #${custom.tertiary_accent};
border-radius: 0;
padding-left: 9px;
padding-right: 9px;
}
#network {
color: #${custom.tertiary_accent};
border-radius: 0;