diff --git a/.local/bin/etc/sxhkd/audio/lmc b/.local/bin/etc/sxhkd/audio/lmc index 9a6978d..90854f9 100755 --- a/.local/bin/etc/sxhkd/audio/lmc +++ b/.local/bin/etc/sxhkd/audio/lmc @@ -6,7 +6,7 @@ [ -z "$LOOPBACK_DEVICE" ] && device="Easy Effects Source" || device="$LOOPBACK_DEVICE" -name=$(wpctl status | grep "$device") +name=$(wpctl status | sed -n '/Sources/,$p' | sed -n '/Filter/q;p' | grep "$device" | sed -e "s/*/\ /g") id=$( echo $name | cut -d '.' -f 1 | cut -c 5-) node=$(wpctl inspect $id | grep node.name | cut -d '=' -f 2)