From 86445b608698640341953c43d386476f08e97352 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Tue, 17 Mar 2026 09:13:15 +0900 Subject: deleted main.lua.d/51-device-priority.conf, modified bin/mounter, modified statusbar/sb-ecrypt, modified bin/unmounter, created wireplumber.conf.d/ --- .../wireplumber/main.lua.d/51-device-priority.conf | 74 ---------------------- .../wireplumber.conf.d/51-device-priority.conf | 74 ++++++++++++++++++++++ ar/.local/bin/mounter | 2 + ar/.local/bin/statusbar/sb-ecrypt | 13 +++- ar/.local/bin/unmounter | 2 + 5 files changed, 90 insertions(+), 75 deletions(-) delete mode 100644 ar/.config/wireplumber/main.lua.d/51-device-priority.conf create mode 100644 ar/.config/wireplumber/wireplumber.conf.d/51-device-priority.conf diff --git a/ar/.config/wireplumber/main.lua.d/51-device-priority.conf b/ar/.config/wireplumber/main.lua.d/51-device-priority.conf deleted file mode 100644 index 13c4987..0000000 --- a/ar/.config/wireplumber/main.lua.d/51-device-priority.conf +++ /dev/null @@ -1,74 +0,0 @@ -monitor.alsa.rules = [ - { - matches = [ - { - node.name = "~alsa_output.*hdmi.*" - } - ] - actions = { - update-props = { - priority.driver = 2000 - priority.session = 2000 - } - } - } - { - matches = [ - { - node.name = "~alsa_output.*analog.*" - } - ] - actions = { - update-props = { - priority.driver = 1000 - priority.session = 1000 - } - } - } -] - -monitor.bluez.rules = [ - { - matches = [ - { - device.name = "~bluez_card.*" - } - ] - actions = { - update-props = { - priority.driver = 3000 - priority.session = 3000 - bluez5.auto-connect = [ a2dp_sink ] - } - } - } -] - -node.rules = [ - { - matches = [ - { - node.name = "~bluez_output.*" - } - ] - actions = { - update-props = { - priority.driver = 3000 - priority.session = 3000 - } - } - } - { - matches = [ - { - node.name = "~bluez_input.*" - } - ] - actions = { - update-props = { - priority.driver = 3000 - priority.session = 3000 - } - } - } -] diff --git a/ar/.config/wireplumber/wireplumber.conf.d/51-device-priority.conf b/ar/.config/wireplumber/wireplumber.conf.d/51-device-priority.conf new file mode 100644 index 0000000..13c4987 --- /dev/null +++ b/ar/.config/wireplumber/wireplumber.conf.d/51-device-priority.conf @@ -0,0 +1,74 @@ +monitor.alsa.rules = [ + { + matches = [ + { + node.name = "~alsa_output.*hdmi.*" + } + ] + actions = { + update-props = { + priority.driver = 2000 + priority.session = 2000 + } + } + } + { + matches = [ + { + node.name = "~alsa_output.*analog.*" + } + ] + actions = { + update-props = { + priority.driver = 1000 + priority.session = 1000 + } + } + } +] + +monitor.bluez.rules = [ + { + matches = [ + { + device.name = "~bluez_card.*" + } + ] + actions = { + update-props = { + priority.driver = 3000 + priority.session = 3000 + bluez5.auto-connect = [ a2dp_sink ] + } + } + } +] + +node.rules = [ + { + matches = [ + { + node.name = "~bluez_output.*" + } + ] + actions = { + update-props = { + priority.driver = 3000 + priority.session = 3000 + } + } + } + { + matches = [ + { + node.name = "~bluez_input.*" + } + ] + actions = { + update-props = { + priority.driver = 3000 + priority.session = 3000 + } + } + } +] 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%% *}" -- cgit v1.2.3