From dc331da1673fb71358a2496793df3ac9cc8e286a Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Sun, 10 Sep 2023 03:11:44 -0700 Subject: [PATCH] Added swayidle-lock-scren --- swayidle-lock-screen | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 swayidle-lock-screen diff --git a/swayidle-lock-screen b/swayidle-lock-screen new file mode 100755 index 0000000..8ed258a --- /dev/null +++ b/swayidle-lock-screen @@ -0,0 +1,8 @@ +#!/usr/bin/env zsh + +swayidle -d -w -C /dev/null \ + timeout 15 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' & +local swayidle_pid="$!" +swaylock +kill "${swayidle_pid}" +hyprctl dispatch dpms on