waybar: use idle_inhibitor instead of custom module

This commit is contained in:
2025-08-10 21:07:05 +02:00
parent f1d5c8aba6
commit a37c93245c
11 changed files with 28 additions and 223 deletions

View File

@@ -10,7 +10,7 @@
"spacing": 2, // Gaps between modules (px)
"modules-left": ["custom/rofi", "group/workspaceactions", "hyprland/window", "custom/mediaplayer"],
"modules-center": ["clock"],
"modules-right": ["group/monitors", "tray", "custom/caffeine", "custom/power"],
"modules-right": ["group/monitors", "tray", "idle_inhibitor", "custom/power"],
// -------------------------------------------------------------------------
// Modules
// -------------------------------------------------------------------------
@@ -33,20 +33,14 @@
"min-length": 2,
"max-length": 2
},
"custom/caffeine": {
"idle_inhibitor": {
"format": "{icon}",
"return-type": "json",
"interval": "once",
"exec": "$HOME/.config/waybar/modules/caffeine.sh",
"on-click": "$HOME/.config/waybar/modules/caffeine.sh toggle && sleep 0.2",
"exec-on-event": true,
"min-length": 2,
"max-length": 2,
"tooltip": false,
"format-icons": {
"active": "",
"inactive": ""
}
"activated": "",
"deactivated": ""
},
"min-length": 2,
"max-length": 2
},
// Time and Date
"clock": {