From 08463ec120e0edb791d800506b5357cb62173c3c Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Wed, 20 Mar 2024 09:24:42 -0700 Subject: [PATCH] Add -e flag to swayidle-lock-screen --- swayidle-lock-screen | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/swayidle-lock-screen b/swayidle-lock-screen index 23af118..d025479 100755 --- a/swayidle-lock-screen +++ b/swayidle-lock-screen @@ -11,7 +11,7 @@ function run { swayidle -w -C /dev/null \ timeout 15 "${suspend_command}" resume "${wake_command}" & local swayidle_pid="${!}" - swaylock -e ${img_flags} + swaylock ${empty_flag} ${img_flags} kill "${swayidle_pid}" hyprctl dispatch dpms on dunstctl set-paused false @@ -28,6 +28,7 @@ function fix_eww { local background=false local suspend_command='hyprctl dispatch dpms off' local wake_command='hyprctl dispatch dpms on' +local empty_flag='' local fix_eww=() while [[ "${1}" =~ '^-' ]]; do case "${1}" in @@ -45,6 +46,9 @@ while [[ "${1}" =~ '^-' ]]; do -s) local suspend_command='sudo /usr/lib/systemd/systemd-sleep suspend &' ;; + -e) + empty_flag='-e' + ;; -*) printf "error: unknown flag '%s'\n" "${1}" >&2 ;;