summaryrefslogtreecommitdiff
path: root/ar/.local/bin/statusbar/sb-ecrypt
diff options
context:
space:
mode:
Diffstat (limited to 'ar/.local/bin/statusbar/sb-ecrypt')
-rwxr-xr-xar/.local/bin/statusbar/sb-ecrypt13
1 files changed, 12 insertions, 1 deletions
diff --git a/ar/.local/bin/statusbar/sb-ecrypt b/ar/.local/bin/statusbar/sb-ecrypt
index 499cb7e..7b17b81 100755
--- a/ar/.local/bin/statusbar/sb-ecrypt
+++ b/ar/.local/bin/statusbar/sb-ecrypt
@@ -7,4 +7,15 @@ case $BLOCK_BUTTON in
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
-mount | grep -q "$HOME/Secret" && echo "🔑" || echo "🔒"
+secret_mounted=0
+mnt_mounted=0
+mount | grep -q "$HOME/Secret" && secret_mounted=1
+mount | grep -q "/mnt/" && mnt_mounted=1
+
+if [ $secret_mounted -eq 1 ] && [ $mnt_mounted -eq 1 ]; then
+ echo "🔑"
+elif [ $secret_mounted -eq 1 ] || [ $mnt_mounted -eq 1 ]; then
+ echo "🔐"
+else
+ echo "🔒"
+fi