From 52c0260d6d2f907859d4693f1a95540701254e7b Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 27 Jun 2024 17:34:42 +0200 Subject: [PATCH] script: Close pass repository when locking screen Before locking emit `pass close` if pass binary is found in path. --- scripts/.local/bin/lockscreen | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/.local/bin/lockscreen b/scripts/.local/bin/lockscreen index c7f7435..6bf7cf4 100755 --- a/scripts/.local/bin/lockscreen +++ b/scripts/.local/bin/lockscreen @@ -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 }