mirror of
https://github.com/imgurbot12/rmenu.git
synced 2025-01-26 12:58:08 +01:00
fix: better pipewire support with slight search mods
This commit is contained in:
parent
cebcbc8b23
commit
d4371b880b
1 changed files with 2 additions and 1 deletions
|
@ -1,9 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
get_sinks() {
|
||||
sinks=`pactl list sinks | grep -e 'Sink ' -e 'Name: ' -e 'Description: ' | nl -s '>'`
|
||||
sinks=`pactl list sinks | grep -e 'Sink #' -e 'Name: ' -e 'Description: ' | nl -s '>'`
|
||||
default=`pactl get-default-sink`
|
||||
for i in `seq 1 3 $(echo "$sinks" | wc -l)`; do
|
||||
echo "$sinks" | grep "$i>"
|
||||
sink=`echo "$sinks" | grep "$i>" | cut -d '#' -f2`
|
||||
name=`echo "$sinks" | grep "$(expr $i + 1)>" | cut -d ':' -f2 | xargs echo -n`
|
||||
desc=`echo "$sinks" | grep "$(expr $i + 2)>" | cut -d ':' -f2 | xargs echo -n`
|
||||
|
|
Loading…
Reference in a new issue