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 ;;