From 977a459ddaa33a856255be9c15464f0a5937c06c Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Mon, 19 Feb 2024 22:32:41 +0000 Subject: Add scripts to repo --- bin/swayidle.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bin/swayidle.sh (limited to 'bin/swayidle.sh') diff --git a/bin/swayidle.sh b/bin/swayidle.sh new file mode 100755 index 0000000..8b971f7 --- /dev/null +++ b/bin/swayidle.sh @@ -0,0 +1,6 @@ +exec swayidle -w \ + timeout 300 "notify-send 'Power' 'System will suspend soon due to inactivity'" \ + timeout 310 "swaylock" \ + timeout 315 "systemctl suspend" \ + before-sleep "swaylock" + -- cgit v1.2.3-70-g09d2