1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-11-09 16:41:16 +01:00

Compare commits

...

2 Commits

Author SHA1 Message Date
c7f1aaa72d lmc: changed loopback script to be more precise 2024-05-23 18:46:28 +02:00
e9a3c08d86 lmc: changed loopback script to be more precise 2024-05-23 18:46:03 +02:00

View File

@@ -6,7 +6,7 @@
[ -z "$LOOPBACK_DEVICE" ] && device="Easy Effects Source" || device="$LOOPBACK_DEVICE" [ -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-) id=$( echo $name | cut -d '.' -f 1 | cut -c 5-)
node=$(wpctl inspect $id | grep node.name | cut -d '=' -f 2) node=$(wpctl inspect $id | grep node.name | cut -d '=' -f 2)
@@ -91,8 +91,8 @@ Allowed options:
next Play next song in player next Play next song in player
shuffle Toggle the shuffle mode shuffle Toggle the shuffle mode
loop Toggle the loop mode loop Toggle the loop mode
tap Start loopback for device tap Start loopback for source device
untap Stop all active loopbacks untap Stop all active source loopbacks
tap_toggle Start or stop loopback depending if it is already running tap_toggle Start or stop loopback depending if it is already running
all else Print this message all else Print this message