Bye bye pavucontrol, dmenu scripts consistency.

This commit is contained in:
Bartek Stalewski 2021-08-28 01:38:42 +02:00
parent 836e31ce61
commit 18c4407e77
5 changed files with 55 additions and 16 deletions

View file

@ -48,7 +48,7 @@ screens=$(echo "$allposs" | awk '/ connected/ {print $1}')
# If there's only one screen
[ "$(echo "$screens" | wc -l)" -lt 2 ] &&
{ onescreen "$screens"; postrun; notify-send "💻 nothing to switch"; exit ;}
{ onescreen "$screens"; postrun; dunstify -u critical "💻 no device to switch"; exit ;}
# Get user choice including both and manual selection:
chosen=$(printf -- "home-1\\nhome-2\\n----\\n%s\\n----\\nmulti" "$screens" | dmenu -l 20 -i -p "display") &&