如何在纵向模式/方向使用 xmonad? [英] How to use xmonad in portrait mode/orientation?

查看:33
本文介绍了如何在纵向模式/方向使用 xmonad?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在纵向物理屏幕上使用 xmonad?

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

我有两个物理显示器,它们都向右旋转了 90 度(顺时针方向,原始底部边缘在左侧)

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

我使用的是 Fedora 21 (3.19.3-200.fc21.x86_64)

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

我不知道如何判断正在运行的窗口管理器,但是有一个 gnome-shell 进程正在运行...

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

当我 sudo telinit 3startx 时,xmonad 会以横向显示所有内容.我当时不知道如何更改它,也不知道如何让它以纵向模式启动.

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.

我的 .xinitrc 文件说明了这一点

My .xinitrc file says this

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

在此先感谢您的帮助!

推荐答案

好吧,首先,您的窗口管理器似乎是 xmonad ;-).除此之外,xrandr 可以满足您的需求.

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

无耻地取自这里(因为 SO 不接受来自unix.stackexchange.com):

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

xrandr 找到你的输出设备(connected"之前的第一个词,你应该找到两行这样的行),例如eDP1 如果输出是

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

然后玩得开心

xrandr --output eDP1 --rotate right

在你的 .xinitrc 中.

原始答案注意到,通过使用 NVidia 卡,您可能需要添加

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

Option    "RandRRotation" "True"

到您的 xorg.conf(我无法通过我的设置进行验证).

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

这篇关于如何在纵向模式/方向使用 xmonad?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆