gpt4 book ai didi

haskell - xmonad 如何为屏幕分配编号,以及如何将屏幕分配给(两个)显示器

转载 作者:行者123 更新时间:2023-12-02 21:06:45 30 4
gpt4 key购买 nike

我正在使用 xmonad(具有最小配置,main = xmonad gnomeConfig{ modMask = mod4Mask,terminal = "gnome-terminal"}),我的计算机有两个显示器,我正在使用 xinerama。

这可行,但我常常对 xmonad 屏幕到显示器的映射感到惊讶,将窗口推到屏幕 (shift-mod-N) 或将焦点移动到屏幕 (mod-N) 时。

此外,mate-panel 在虚拟屏幕符号上显示窗口符号 - 但有些东西不对劲(这些虚拟屏幕似乎有双倍宽度,我猜是因为它是一个 X 屏幕)

正确的心理模型是什么?

(是否有一个魔术键可以显示当前(聚焦的)窗口的屏幕编号?)

注意(由下面的答案建议):在 xmonad 行话中,窗口位于工作区上,工作区映射到(物理)屏幕。

最佳答案

XMonad.Actions.PhysicalScreens文档内容如下:

This module allows you name Xinerama screens from XMonad using their physical location relative to each other (as reported by Xinerama), rather than their ScreenID s, which are arbitrarily determined by your X server and graphics hardware.

Screens are ordered by the upper-left-most corner, from top-to-bottom and then left-to-right.

我相信“相对于彼此的物理位置”是指 ServerLayout section of Xinerama's configuration file 指定的布局。我在这里做了一些猜测,因为我对 Xinerama 不太熟悉,但似乎该模块可以帮助解决不可预测的屏幕数量问题。

关于haskell - xmonad 如何为屏幕分配编号,以及如何将屏幕分配给(两个)显示器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23271662/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com