script: Close pass repository when locking screen

Before locking emit `pass close` if pass binary is found in path.
This commit is contained in:
Marty Oehme 2024-06-27 17:34:42 +02:00
parent 444c378d89
commit 52c0260d6d
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -25,6 +25,10 @@ pre_lock() {
type mpc >/dev/null 2>&1 && mpc -q pause
type playerctl >/dev/null 2>&1 && playerctl -s pause
type amixer >/dev/null 2>&1 && amixer -q set Master mute
# lock any pass coffins if we have them
type pass >/dev/null 2>&1 && pass close >/dev/null 2>&1
return
}