summaryrefslogtreecommitdiff
path: root/bin/idleify
blob: 7cde7bb1a41ea77e7bd9002520ee916165a3cd63 (plain)
1
2
3
4
5
6
7
#!/bin/sh
lock="swaylock -f --indicator-radius 400 --indicator-thickness 20 --ring-color df73ff --key-hl-color 663399 -K -c 000000"

exec swayidle -w \
	timeout 120 "$lock" \
	timeout 300 'swaymsg "output * power off"' \
	resume 'swaymsg "output * power on"'