Consistency of dmenu scripts.
This commit is contained in:
parent
299f43a491
commit
a3aff0e7e8
3 changed files with 29 additions and 29 deletions
|
@ -15,7 +15,7 @@ set_input() {
|
|||
sinks=$(pactl list sinks | awk -F':' '/Description:/ {print $2}')
|
||||
sources=$(pactl list sources | grep -v 'Monitor of ' | awk -F':' '/Description:/ {print $2}')
|
||||
[ "$(echo "$sinks" | wc -l)" -lt 2 ] &&
|
||||
{ notify-send "🔊 Only one sink detected."; exit; }
|
||||
{ notify-send "🔊 Nothing to switch to."; exit; }
|
||||
|
||||
chosen=$(printf "output\\ninput" | dmenu -i -p "select type")
|
||||
case "$chosen" in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue