Consistency of dmenu scripts.

This commit is contained in:
Bartek Stalewski 2021-08-24 23:35:49 +02:00
parent 299f43a491
commit a3aff0e7e8
3 changed files with 29 additions and 29 deletions

View file

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