diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/idleify | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/idleify b/bin/idleify new file mode 100755 index 0000000..7cde7bb --- /dev/null +++ b/bin/idleify @@ -0,0 +1,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"' |