XMonad set layout depending on which monitor it's displayed

我的梦境 提交于 2019-11-30 13:53:07

问题


Is it possible to somehow make the workspace layout change depending on which physical screen I am displaying it?

I want to use reflectHoriz (from XMonad.Layout.PerWorkspace) on layouts on my left monitor so that the master pane is always closest to the center of 2 screens.

I tried XMonad.Layout.IndependentScreens but that just creates double monitor dependant workspaces and that's not what I'm aiming at. Ideally, I want the same workspace to have different layout set depending on the monitor on which it is displayed.


回答1:


I think it should be possible to make a Layout wrapper (like Mirror or Choose) which does what you want. The runLayout method of LayoutClass receives the WorkspaceId, which you can look up in the map from Screens to Workspaces.



来源:https://stackoverflow.com/questions/21113096/xmonad-set-layout-depending-on-which-monitor-its-displayed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!