Add idle-inhibit

Sometimes I don't want the computer to go to sleep bacause I'm
running something in the background. for that I always used
systemd-inhibit sleep 999999 manually on the terminal, but I want
it to be easy to use without remembering the whole command every
time.

Therefor I added a custom button to waybar which does that for me.
This commit is contained in:
Jeena 2025-12-13 14:27:09 +09:00
parent bc0d3a7737
commit de7375bfb7
3 changed files with 25 additions and 1 deletions

View file

@ -15,6 +15,7 @@
"network",
"hyprland/language",
"custom/notifications",
"custom/idle-inhibit",
"custom/power"
],
@ -100,6 +101,15 @@
"escape": true
},
"custom/idle-inhibit": {
"exec": "if test -f $XDG_RUNTIME_DIR/idle-inhibit.pid; then echo '󰅶'; else echo '󰾪'; fi",
"on-click": "~/.config/hypr/scripts/idle-inhibit-toggle.sh",
"interval": 2,
"return-type": "raw",
"tooltip": true,
"tooltip-format": "Idle inhibit"
},
"custom/power": {
"format": " ⏻ ",
"tooltip": false,