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

7 lines
196 B
Bash
Executable File

#!/bin/sh
pkill -x swayidle
exec swayidle -w \
timeout 300 'swaylock -f' \
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
before-sleep 'swaylock -f'