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

7 lines
226 B
Bash
Executable File

#!/bin/sh
pkill -x swayidle
exec swayidle -w \
timeout 300 "$HOME/.config/sway/lock.sh" \
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
before-sleep "$HOME/.config/sway/lock.sh"