This python script lets you change your monitor displays. It works only with dual monitors. I you have only one monitor plugged or using only laptop's built-in display, it selects that one.
This program has 5 mod:
- Mirror display
- Primary on right
- Primary on left
- Only Primary
- Only Secondary
Just copy file called monitor to ~/.config/i3/ location.
And this is the code for assigning this script to a shortcut in i3 config:
bindsym $mod+Shift+p exec ~/.config/i3/monitor