Anil Paul

Web Developer – Designer

Manjaro i3 monitor set up

Manjaro i3 Monitor Set up

manjaro i3 monitor set up script

  • run to determine output type run xrandr
  • write shell script and execute it sh monitor-setup.sh
#!/bin/sh
/usr/bin/xrandr --output eDP1 --mode 1920x1080 --primary
/usr/bin/xrandr --output DP1 --mode 1920x1080 --right-of eDP1
/usr/bin/xrandr --output HDMI2 --mode 1920x1080 --right-of DP1

in this example the Laptop screen in eDP1 which set as primary display using --primary flag.

inside i3 config we can set the workspace

#workspace out put to monitors 
workspace $ws1 output DP1
workspace $ws4 output DP1
workspace $ws5 output DP1
workspace $ws2 output HDMI2
workspace $ws3 output HDMI2

Also in i3 we can configure the app to load to specific display

assign [class="jetbrains-phpstorm"] $ws1