mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-02-27 05:18:55 +00:00
12 lines
294 B
Bash
Executable file
12 lines
294 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
serv="hypridle.service"
|
|
|
|
if systemctl --user is-active --quiet "$serv"; then
|
|
systemctl --user stop "$serv"
|
|
notify-send "Idle-Toggle" "Idle timeouts disabled"
|
|
else
|
|
systemctl --user start "$serv"
|
|
notify-send "Idle-Toggle" "Idle timeouts enabled"
|
|
fi
|