How to setup external monitor with manjaro i3?

I have created a layout with arandr:
xrandr --output eDP1 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --output HDMI1 --mode 1920x1080 --pos 0x0 --rotate normal --output VIRTUAL1 --off
How to make it persistent after every login ?
I tried appending it to the .xinitrc didnt wokred.

Find the solution just now:
First got to arandr customize your preferred layout.
Now your laptop and external display should be working fine but this layout is not saved upon the reboot.

For saving the external monitor and laptop layout do the following steps

  1. Install autorandr
    pip install autorandr

  2. Save your current current docked layout using autorandr
    autorandr --save docked

  3. Now you can execute the command autorandr --layout for choosing specific layout:
    for example:
    autorandr --mobile

  4. Now running this layout on every boot add the autorandr command to i3 config:

exec autorandr mobile

2 Likes

:+1: Thank you for sharing! :+1:

However, could you do me a favour and:

  • edit your question by pressing the 3 dots and the pencil icon
  • make it into a real question
  • cut and paste the solution into a reply to your own question
  • click the 3 dots below your own answer to mark a solution like this:
    Solution
    so that the next person that has the exact same problem you just had will benefit from your post as your question will now be in the “solved” status.

:crossed_fingers: