diff options
author | ubq323 <ubq323@ubq323.website> | 2023-06-11 15:20:14 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-06-11 15:20:14 +0100 |
commit | badb9da3f580cc48288b616f2f635cf8a83f5fcd (patch) | |
tree | 10efb64b4854abf226ea8e57c1e90d0a601a3a95 /bin | |
parent | b9693018f280b7fec086e2e5c5921ce41c29fceb (diff) |
misc
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"' |