- install
xrandr
- install
alacarte
(Main Menu app in Ubuntu Store) - download this repo
Create menu items for scripts (1d.sh, 2d.sh) with Main Menu app:
- icon: choose according icon (1.svg)
- command:
bash path/1d.sh
Search new items in menu and add em to favorites. When switching to one display or two displays run according script.