3 # menu similar to the super + p menu on windows
4 # used to quickly change settings when docking a laptop
10 Second screen only
12 :g Set default action
13 :r Close menu' | instantmenu -l 20 -h -1 -c -w -1 -bw 4 -q search
17 echo '>>h Default projection settings
20 Second screen only
24 :b Back' | instantmenu -l 20 -h -1 -c -w -1 -bw 4 -q search
31 echo "restarting dunst"
40 while [ -n "$DEFAULTLOOPING" ]; do
41 DEFAULTCHOICE="$(defaultmenu)"
43 if [ -z "$DEFAULTCHOICE" ]; then
49 case "$DEFAULTCHOICE" in
50 "*Second screen only")
78 if ! iconf automon; then
79 echo "no default monitor setting"
82 AUTOMON="$(iconf automon)"
83 if grep '^[esSc]$' <<<"$AUTOMON"; then
94 if iconf automon; then
105 echo "starting instantdisper"
111 while [ -n "$LOOPING" ]; do
121 if grep -q 'PC' <<<"$CHOICE"; then
122 echo "setting display to primary monitor"
125 echo "setting display to secondary monitor"
131 echo "duplicating monitors"
136 echo "setting default action"
144 echo "choice $CHOICE"