diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-17 09:13:15 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-17 09:13:15 +0900 |
| commit | 86445b608698640341953c43d386476f08e97352 (patch) | |
| tree | d58324cce8ba582ea8cb70faa7f43f1e50d10279 | |
| parent | d043f8be7e58ddf61e8f296eb369d3cef87d96df (diff) | |
deleted main.lua.d/51-device-priority.conf, modified bin/mounter, modified statusbar/sb-ecrypt, modified bin/unmounter, created wireplumber.conf.d/
| -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-x | ar/.local/bin/mounter | 2 | ||||
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-ecrypt | 13 | ||||
| -rwxr-xr-x | ar/.local/bin/unmounter | 2 |
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%% *}" |
