Consistency of dmenu scripts.
This commit is contained in:
parent
b8958a9aad
commit
5002db57b2
3 changed files with 4 additions and 4 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 to."; exit ;}
|
||||
{ onescreen "$screens"; postrun; notify-send "💻 nothing 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