Independent control for for just blocking hibernation during idle

This commit is contained in:
John Mertz 2022-11-21 18:55:17 -05:00
parent fda9041548
commit 7618e648d5
1 changed files with 7 additions and 1 deletions

View File

@ -38,7 +38,7 @@
// Choose the order of the modules
"modules-left": ["sway/workspaces"],
"modules-center": [],
"modules-right": ["custom/weather", "network", "network#wireguard", "cpu", "memory", "custom/disk", "temperature", "backlight", "custom/battery", "pulseaudio","tray", "custom/wallpaper", "custom/todo", "custom/osk", "custom/pkg", "custom/bar", "custom/gammastep", "idle_inhibitor", "custom/clock", "custom/power"],
"modules-right": ["custom/weather", "network", "network#wireguard", "cpu", "memory", "custom/disk", "temperature", "backlight", "custom/battery", "pulseaudio","tray", "custom/wallpaper", "custom/todo", "custom/osk", "custom/pkg", "custom/bar", "custom/gammastep", "idle_inhibitor", "custom/hibernate_inhibitor", "custom/clock", "custom/power"],
// Modules configuration
"sway/workspaces": {
// "disable-scroll": true,
@ -195,6 +195,12 @@
},
"on-click": "echo {status} > .config/idle_inhibitor"
},
"custom/hibernate_inhibitor": {
"interval": 5,
"return-type": "json",
"exec": "${HOME}/scripts/waybar/waybar-hibernate.sh bar",
"on-click": "${HOME}/scripts/waybar/waybar-hibernate.sh toggle"
},
"custom/gammastep": {
"interval": 1,
"return-type": "json",