summaryrefslogtreecommitdiff
path: root/ar
diff options
context:
space:
mode:
Diffstat (limited to 'ar')
-rw-r--r--ar/.config/wireplumber/wireplumber.conf.d/51-device-priority.conf (renamed from ar/.config/wireplumber/main.lua.d/51-device-priority.conf)0
-rwxr-xr-xar/.local/bin/mounter2
-rwxr-xr-xar/.local/bin/statusbar/sb-ecrypt13
-rwxr-xr-xar/.local/bin/unmounter2
4 files changed, 16 insertions, 1 deletions
diff --git a/ar/.config/wireplumber/main.lua.d/51-device-priority.conf b/ar/.config/wireplumber/wireplumber.conf.d/51-device-priority.conf
index 13c4987..13c4987 100644
--- a/ar/.config/wireplumber/main.lua.d/51-device-priority.conf
+++ b/ar/.config/wireplumber/wireplumber.conf.d/51-device-priority.conf
diff --git a/ar/.local/bin/mounter b/ar/.local/bin/mounter
index 54b6eb5..fa4e115 100755
--- a/ar/.local/bin/mounter
+++ b/ar/.local/bin/mounter
@@ -218,3 +218,5 @@ case "$chosen" in
notify-send "📡 Samba successfully mounted to" "$mp"
;;
esac
+
+pkill -RTMIN+1 dwmblocks
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
diff --git a/ar/.local/bin/unmounter b/ar/.local/bin/unmounter
index 537fd25..4c77af8 100755
--- a/ar/.local/bin/unmounter
+++ b/ar/.local/bin/unmounter
@@ -49,6 +49,8 @@ else
notify-send "🚮 Mounted path removed." "$chosen has been removed."
fi
+pkill -RTMIN+1 dwmblocks
+
# Close the chosen drive if decrypted.
cryptid="$(echo "$lsblkoutput" | grep "/${chosen#*/}$")"
cryptid="${cryptid%% *}"