sway_lock: stop media with playerctl on lock, remove bw
This commit is contained in:
parent
a8c4d62978
commit
0271bfb5d9
1 changed files with 2 additions and 2 deletions
|
@ -2,11 +2,11 @@
|
||||||
source $HOME/.config/sway/bin/sway_helpers
|
source $HOME/.config/sway/bin/sway_helpers
|
||||||
IMAGE=$HOME/.lockscreen.jpg
|
IMAGE=$HOME/.lockscreen.jpg
|
||||||
LOCK_IMAGE=$HOME/.config/sway/bin/lock.png
|
LOCK_IMAGE=$HOME/.config/sway/bin/lock.png
|
||||||
|
MEDIA_APP=playerctl
|
||||||
SCROT_APP=grim
|
SCROT_APP=grim
|
||||||
SCROT_ARGS=" -t jpeg"
|
SCROT_ARGS=" -t jpeg"
|
||||||
LOCK_APP=swaylock
|
LOCK_APP=swaylock
|
||||||
LOCK_ARGS=" -f -F -e -c 000000 --indicator-radius 100 --indicator-thickness 20 -i $IMAGE"
|
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
|
INHIBIT_FILE=$HOME/.inhibit_lock
|
||||||
|
|
||||||
function _clean() {
|
function _clean() {
|
||||||
|
@ -15,7 +15,7 @@ function _clean() {
|
||||||
|
|
||||||
function _lock() {
|
function _lock() {
|
||||||
_check_inhibit $INHIBIT_FILE
|
_check_inhibit $INHIBIT_FILE
|
||||||
$BW_APP lock
|
$MEDIA_APP stop
|
||||||
$LOCK_APP $LOCK_ARGS
|
$LOCK_APP $LOCK_ARGS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue