Add idle inhibitor to waybar
This commit is contained in:
parent
c1879671fc
commit
cdbfa56130
|
@ -45,6 +45,7 @@
|
||||||
++ [
|
++ [
|
||||||
"pulseaudio"
|
"pulseaudio"
|
||||||
"battery"
|
"battery"
|
||||||
|
"idle_inhibitor"
|
||||||
"network"
|
"network"
|
||||||
"custom/notification"
|
"custom/notification"
|
||||||
"clock"
|
"clock"
|
||||||
|
@ -147,6 +148,16 @@
|
||||||
tooltip = true;
|
tooltip = true;
|
||||||
tooltip-format = "{time}";
|
tooltip-format = "{time}";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
idle_inhibitor = {
|
||||||
|
format = "{icon}";
|
||||||
|
format-icons = {
|
||||||
|
activated = " ";
|
||||||
|
deactivated = " ";
|
||||||
|
};
|
||||||
|
timeout = 30;
|
||||||
|
};
|
||||||
|
|
||||||
"custom/launcher" = {
|
"custom/launcher" = {
|
||||||
format = "";
|
format = "";
|
||||||
on-click = "pkill fuzzel || fuzzel";
|
on-click = "pkill fuzzel || fuzzel";
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#tray, #pulseaudio, #network, #cpu, #memory, #disk,
|
#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};
|
background: #${custom.palette.tertiary_background_hex};
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin: 5px 0px;
|
margin: 5px 0px;
|
||||||
|
@ -108,6 +108,13 @@
|
||||||
padding-right: 9px;
|
padding-right: 9px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#idle_inhibitor {
|
||||||
|
color: #${custom.tertiary_accent};
|
||||||
|
border-radius: 0;
|
||||||
|
padding-left: 9px;
|
||||||
|
padding-right: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
#network {
|
#network {
|
||||||
color: #${custom.tertiary_accent};
|
color: #${custom.tertiary_accent};
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
|
Loading…
Reference in a new issue