Files
sway-rising/.config/sway/lock.sh
T
2026-10-27 23:56:04 +05:00

9 lines
268 B
Bash
Executable File

#!/bin/sh
# Lock with swaylock-effects (blur + clock) if installed, else plain swaylock.
pgrep -x swaylock >/dev/null && exit 0
fx=$HOME/.local/bin/swaylock-effects
if [ -x "$fx" ]; then
exec "$fx" -f -C "$HOME/.config/swaylock/config-effects"
fi
exec swaylock -f