From 1d2a657c300fdddfe47dda9eea4b896cbf44872b Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 26 Mar 2025 00:36:52 +0900 Subject: modified zsh/scripts.zsh, modified bin/ecrypt, modified statusbar/sb-ecrypt, created statusbar/sb-ticker --- ar/.local/bin/ecrypt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ar/.local/bin/ecrypt') diff --git a/ar/.local/bin/ecrypt b/ar/.local/bin/ecrypt index ace0eb7..67b705d 100755 --- a/ar/.local/bin/ecrypt +++ b/ar/.local/bin/ecrypt @@ -7,7 +7,11 @@ mount_encrypted() { attempt_mount() { if mount | grep -q " $2 "; then - sudo umount "$2" && notify-send "🔒 Locked: $3" || notify-send "❗ Unable to lock" "Mounted: $3" + if sudo umount "$2"; then + notify-send "🔒 Locked: $3" + else + notify-send "❗ Unable to lock" "Mounted: $3" + fi else ECRYPTFS_SIG=$(pass show encryption/ecryptfs-sig-"$4") FNEK_SIG=$ECRYPTFS_SIG -- cgit v1.2.3