Bye bye pavucontrol, dmenu scripts consistency.
This commit is contained in:
parent
836e31ce61
commit
18c4407e77
5 changed files with 55 additions and 16 deletions
|
@ -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") &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue