summaryrefslogtreecommitdiff
path: root/bin/idleify
blob: 6867d779456c0f7275969dcdc71f79328f7b5afe (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 300 "$lock" \
	timeout 360 'swaymsg "output * power off"' \
	resume 'swaymsg "output * power on"'