bin/sway_lock: on lock, lock vault

This commit is contained in:
Konstantin Koslowski 2021-05-02 13:32:25 +02:00
parent fddbd22272
commit 5a4d855242

View file

@ -6,6 +6,7 @@ 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() {
@ -14,6 +15,7 @@ function _clean() {
function _lock() { function _lock() {
_check_inhibit $INHIBIT_FILE _check_inhibit $INHIBIT_FILE
$BW_APP lock
$LOCK_APP $LOCK_ARGS $LOCK_APP $LOCK_ARGS
} }