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:
parent
7c1874b96e
commit
e9a3c08d86
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user