From 42f359c4ff076c6cfec6ee27674edffabe574a2c Mon Sep 17 00:00:00 2001 From: Konstantin Koslowski Date: Sat, 2 Jul 2022 15:29:48 +0200 Subject: [PATCH] bin/sway_lock: fill background, only pause media --- bin/sway_lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/sway_lock b/bin/sway_lock index 4f9cc39..537a83f 100755 --- a/bin/sway_lock +++ b/bin/sway_lock @@ -7,7 +7,7 @@ MEDIA_APP=playerctl SCROT_APP=grim SCROT_ARGS=" -o $OUTPUT -t png" LOCK_APP=swaylock -LOCK_ARGS=" -f -F -e -c 000000 --indicator-radius 100 --indicator-thickness 20 -i $IMAGE" +LOCK_ARGS=" -f -F -e -s fill -c 000000 --indicator-radius 100 --indicator-thickness 20 -i $IMAGE" INHIBIT_FILE=$HOME/.inhibit_lock function _clean() { @@ -16,7 +16,7 @@ function _clean() { function _lock() { _check_inhibit $INHIBIT_FILE - $MEDIA_APP stop + $MEDIA_APP pause _check_running $LOCK_APP $LOCK_APP $LOCK_ARGS }