From 7618e648d5f29c0229ff04acc63f2be9b6d05433 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Mon, 21 Nov 2022 18:55:17 -0500 Subject: [PATCH] Independent control for for just blocking hibernation during idle --- waybar/config.template | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/waybar/config.template b/waybar/config.template index d45d4c90d..f8b8f1d6c 100644 --- a/waybar/config.template +++ b/waybar/config.template @@ -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",