Files
arthur-os/bin/omarchy-toggle-idle
T

14 lines
385 B
Bash
Executable File

#!/bin/bash
# omarchy:summary=Toggle hypridle idle locking
if pgrep -x hypridle >/dev/null; then
pkill -x hypridle
omarchy-notification-send -g 󱫖 "Stop locking computer when idle"
else
uwsm-app -- hypridle >/dev/null 2>&1 &
omarchy-notification-send -g 󱫖 "Now locking computer when idle"
fi
omarchy-shell-ipc --if-running bar refreshIndicators >/dev/null 2>&1 || true