How to use xmonad in portrait mode/orientation?

2019-08-09 18:12发布

How does one use xmonad with the physical screens in portrait orientation?

I have two physical displays and they are both rotated 90 degrees to the right (clockwise with original bottom edges on the left)

I'm on Fedora 21 (3.19.3-200.fc21.x86_64)

I don't know how to tell what window manager is running, but there's a gnome-shell process running...

When I sudo telinit 3 and then startx, xmonad comes up with everything in landscape orientation. I don't know how to change it at that point and I don't know how to make it start in portrait mode.

My .xinitrc file says this

#!/usr/bin/env bash
emacs &
gnome-terminal &
exec xmonad

Thanks in advance for any help!

标签: x11
1条回答
beautiful°
2楼-- · 2019-08-09 18:30

Well, first of all, your window manager seems to be xmonad ;-). Independent of that, xrandr does what you need.

Shamelessly taken from here (because SO doesn't accept duplicates from unix.stackexchange.com):

Find your output devices with xrandr (the first word before "connected", you should find two such lines), e.g. eDP1 if the output is

eDP1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 309mm x 174mm

and then have fun with

xrandr --output eDP1 --rotate right

in your .xinitrc.

The original answer notices that by using a NVidia card you may have to add

Option    "RandRRotation" "True"

to your xorg.conf (which i cannot verify with my setup).

查看更多
登录 后发表回答