bin/sway_lock: fill background, only pause media
This commit is contained in:
parent
e7ba828de1
commit
42f359c4ff
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ MEDIA_APP=playerctl
|
||||||
SCROT_APP=grim
|
SCROT_APP=grim
|
||||||
SCROT_ARGS=" -o $OUTPUT -t png"
|
SCROT_ARGS=" -o $OUTPUT -t png"
|
||||||
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 -s fill -c 000000 --indicator-radius 100 --indicator-thickness 20 -i $IMAGE"
|
||||||
INHIBIT_FILE=$HOME/.inhibit_lock
|
INHIBIT_FILE=$HOME/.inhibit_lock
|
||||||
|
|
||||||
function _clean() {
|
function _clean() {
|
||||||
|
@ -16,7 +16,7 @@ function _clean() {
|
||||||
|
|
||||||
function _lock() {
|
function _lock() {
|
||||||
_check_inhibit $INHIBIT_FILE
|
_check_inhibit $INHIBIT_FILE
|
||||||
$MEDIA_APP stop
|
$MEDIA_APP pause
|
||||||
_check_running $LOCK_APP
|
_check_running $LOCK_APP
|
||||||
$LOCK_APP $LOCK_ARGS
|
$LOCK_APP $LOCK_ARGS
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue