1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-28 05:57:45 +01:00

lmc: changed loopback script to be more precise

This commit is contained in:
tiyn 2024-05-23 18:46:03 +02:00
parent 7c1874b96e
commit e9a3c08d86

View File

@ -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)