diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-17 09:13:15 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-17 09:13:15 +0900 |
| commit | 86445b608698640341953c43d386476f08e97352 (patch) | |
| tree | d58324cce8ba582ea8cb70faa7f43f1e50d10279 /ar/.local/bin/statusbar | |
| parent | d043f8be7e58ddf61e8f296eb369d3cef87d96df (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-x | ar/.local/bin/statusbar/sb-ecrypt | 13 |
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 |
