From 0271bfb5d9aff06d503a6f35e602e30463fa5d5d Mon Sep 17 00:00:00 2001 From: Konstantin Koslowski Date: Wed, 20 Apr 2022 20:42:25 +0200 Subject: [PATCH] sway_lock: stop media with playerctl on lock, remove bw --- bin/sway_lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/sway_lock b/bin/sway_lock index f6a6bcd..6df9701 100755 --- a/bin/sway_lock +++ b/bin/sway_lock @@ -2,11 +2,11 @@ source $HOME/.config/sway/bin/sway_helpers IMAGE=$HOME/.lockscreen.jpg LOCK_IMAGE=$HOME/.config/sway/bin/lock.png +MEDIA_APP=playerctl SCROT_APP=grim SCROT_ARGS=" -t jpeg" LOCK_APP=swaylock LOCK_ARGS=" -f -F -e -c 000000 --indicator-radius 100 --indicator-thickness 20 -i $IMAGE" -BW_APP="/usr/bin/bw" INHIBIT_FILE=$HOME/.inhibit_lock function _clean() { @@ -15,7 +15,7 @@ function _clean() { function _lock() { _check_inhibit $INHIBIT_FILE - $BW_APP lock + $MEDIA_APP stop $LOCK_APP $LOCK_ARGS }