From c80a54e42b52ce297f0f2f71af23c562832025c7 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Fri, 24 Jan 2025 20:35:27 +0900 Subject: init --- ar/.local/bin/statusbar/sb-ecrypt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 ar/.local/bin/statusbar/sb-ecrypt (limited to 'ar/.local/bin/statusbar/sb-ecrypt') 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 "🔒" -- cgit v1.2.3