diff options
Diffstat (limited to 'ar/.local/bin/ecrypt')
| -rwxr-xr-x | ar/.local/bin/ecrypt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ar/.local/bin/ecrypt b/ar/.local/bin/ecrypt index d16d746..0e189af 100755 --- a/ar/.local/bin/ecrypt +++ b/ar/.local/bin/ecrypt @@ -9,6 +9,7 @@ attempt_mount() { if mount | grep -q " $2 "; then if sudo umount "$2"; then notify-send "🔒 Locked: $3" + pkill -RTMIN+1 dwmblocks else notify-send "❗ Unable to lock" "Mounted: $3" fi @@ -20,7 +21,7 @@ attempt_mount() { notify-send "❌ Failed to retrieve passphrase." exit 1 } - mount_encrypted "$1" "$2" && notify-send "🔑 Unlocked: $3" + mount_encrypted "$1" "$2" && notify-send "🔑 Unlocked: $3" && pkill -RTMIN+1 dwmblocks fi } |
