From badb9da3f580cc48288b616f2f635cf8a83f5fcd Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sun, 11 Jun 2023 15:20:14 +0100 Subject: misc --- bin/idleify | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 bin/idleify (limited to 'bin') 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"' -- cgit v1.2.3