From 291b855c6cd32393c32a52daf1782e1864000fdf Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Sun, 18 Jun 2023 19:27:02 +0530 Subject: fixing suspend --- .scripts/suspend.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 .scripts/suspend.sh (limited to '.scripts/suspend.sh') diff --git a/.scripts/suspend.sh b/.scripts/suspend.sh new file mode 100755 index 0000000..3e5a260 --- /dev/null +++ b/.scripts/suspend.sh @@ -0,0 +1,6 @@ +#!/bin/bash +swayidle -w \ + timeout 240 ' swaylock ' \ + timeout 400 ' hyprctl dispatch dpms off' \ + resume ' hyprctl dispatch dpms on' \ + before-sleep 'swaylock' -- cgit v1.2.3