diff options
Diffstat (limited to 'ar/.local/bin')
| -rwxr-xr-x | ar/.local/bin/mounter | 2 | ||||
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-ecrypt | 13 | ||||
| -rwxr-xr-x | ar/.local/bin/unmounter | 2 |
3 files changed, 16 insertions, 1 deletions
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%% *}" |
