summaryrefslogtreecommitdiff
path: root/ar/.local/bin/statusbar
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-03-17 09:13:15 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-03-17 09:13:15 +0900
commit86445b608698640341953c43d386476f08e97352 (patch)
treed58324cce8ba582ea8cb70faa7f43f1e50d10279 /ar/.local/bin/statusbar
parentd043f8be7e58ddf61e8f296eb369d3cef87d96df (diff)
deleted main.lua.d/51-device-priority.conf, modified bin/mounter, modified statusbar/sb-ecrypt, modified bin/unmounter, created wireplumber.conf.d/
Diffstat (limited to 'ar/.local/bin/statusbar')
-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