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-ecrypt12
1 files changed, 12 insertions, 0 deletions
diff --git a/ar/.local/bin/statusbar/sb-ecrypt b/ar/.local/bin/statusbar/sb-ecrypt
new file mode 100755
index 0000000..24c4cb3
--- /dev/null
+++ b/ar/.local/bin/statusbar/sb-ecrypt
@@ -0,0 +1,12 @@
+#!/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
+- Left click to toggle mount" ;;
+6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
+esac
+
+is_mounted "$MOUNT_POINT" && echo "🔑" || echo "🔒"