Add idle inhibitor to waybar

This commit is contained in:
Salt 2024-02-15 01:54:38 -06:00
parent fd8a8dc5d9
commit 5ec82e75a2
2 changed files with 17 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{
"layer": "top",
"height": 40,
"modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
"modules-left": ["sway/workspaces", "sway/mode", "idle_inhibitor"],
"modules-center": ["tray"],
"modules-right": ["pulseaudio", "battery", "clock"],
"sway/workspaces": {
@ -19,6 +19,13 @@
"10": []
}
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
"icon-size": 16,
"spacing": 10

View File

@ -48,6 +48,15 @@ window#waybar {
padding: 0 1em;
color: #ebdbb2;
}
#idle_inhibitor {
padding: 0 1em;
}
#idle_inhibitor.deactivated {
color: #32302f;
}
#idle_inhibitor.activated {
color: #fb4934;
}
#battery {
padding: 0 1em;
}