script: Close pass repository when locking screen
Before locking emit `pass close` if pass binary is found in path.
This commit is contained in:
parent
444c378d89
commit
52c0260d6d
1 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,10 @@ pre_lock() {
|
||||||
type mpc >/dev/null 2>&1 && mpc -q pause
|
type mpc >/dev/null 2>&1 && mpc -q pause
|
||||||
type playerctl >/dev/null 2>&1 && playerctl -s pause
|
type playerctl >/dev/null 2>&1 && playerctl -s pause
|
||||||
type amixer >/dev/null 2>&1 && amixer -q set Master mute
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue