mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-06 12:39:35 +02:00
14 lines
385 B
Bash
Executable File
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
|