summaryrefslogtreecommitdiff
path: root/ar/.local/bin/statusbar/sb-ecrypt
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-03-26 00:36:52 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-03-26 00:36:52 +0900
commit1d2a657c300fdddfe47dda9eea4b896cbf44872b (patch)
tree28b9cf509cba8f9dd35f0a6d226111811efc196f /ar/.local/bin/statusbar/sb-ecrypt
parentd9151467e4a85271333bf3e688797fba79ed2d93 (diff)
modified zsh/scripts.zsh, modified bin/ecrypt, modified statusbar/sb-ecrypt, created statusbar/sb-ticker
Diffstat (limited to 'ar/.local/bin/statusbar/sb-ecrypt')
-rwxr-xr-xar/.local/bin/statusbar/sb-ecrypt4
1 files changed, 1 insertions, 3 deletions
diff --git a/ar/.local/bin/statusbar/sb-ecrypt b/ar/.local/bin/statusbar/sb-ecrypt
index 24c4cb3..f07b994 100755
--- a/ar/.local/bin/statusbar/sb-ecrypt
+++ b/ar/.local/bin/statusbar/sb-ecrypt
@@ -1,7 +1,5 @@
#!/bin/sh
-is_mounted() { mount | grep -q "$HOME/Private"; }
-
case $BLOCK_BUTTON in
1) "${XDG_SCRIPTS_HOME:-${HOME}/.local/bin}/ecrypt" ;;
3) notify-send "🔒 Encrypted Media Folder " "\- Shows mount status of Media
@@ -9,4 +7,4 @@ case $BLOCK_BUTTON in
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
-is_mounted "$MOUNT_POINT" && echo "🔑" || echo "🔒"
+mount | grep -q "$HOME/Private" && echo "🔑" || echo "🔒"