Consistency of dmenu scripts.

This commit is contained in:
Bartek Stalewski 2021-08-24 23:38:44 +02:00
parent b8958a9aad
commit 5002db57b2
3 changed files with 4 additions and 4 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 "🔊 Nothing to switch to."; exit; }
{ notify-send "🔊 nothing to switch"; exit; }
chosen=$(printf "output\\ninput" | dmenu -i -p "change")
case "$chosen" in