![如何在 xmonad 中没有 gnome-settings-daemon 的情况下在监视器之间移动 gnome-panel?](https://linux22.com/image/52131/%E5%A6%82%E4%BD%95%E5%9C%A8%20xmonad%20%E4%B8%AD%E6%B2%A1%E6%9C%89%20gnome-settings-daemon%20%E7%9A%84%E6%83%85%E5%86%B5%E4%B8%8B%E5%9C%A8%E7%9B%91%E8%A7%86%E5%99%A8%E4%B9%8B%E9%97%B4%E7%A7%BB%E5%8A%A8%20gnome-panel%EF%BC%9F.png)
我正在使用 gnome-panel 运行 xmonad,但不使用 gnome-settings-daemon。我通过在 xmonad.hs 中生成来启动 gnome-panel。我如何(在命令行上)让 gnome-panel 切换显示器?
xmonad.hs:
myManageHook :: [ManageHook]
myManageHook =
[ resource =? "Skype" --> doFloat
, resource =? "Vncviewer" --> doFloat
, resource =? "gnome-panel" --> doIgnore
, isFullscreen --> doFullFloat
]
startup :: X()
startup = do
spawn "gnome-panel"
main = xmonad $ ewmh defaultConfig
{ modMask = mod4Mask
, terminal = "gnome-terminal"
-- avoidStruts prevents overlap with gnome-panel
-- smartBorders disables border in full screen (or single-window)
, layoutHook = avoidStruts $ smartBorders $ layoutHook defaultConfig
, manageHook = composeAll myManageHook <+> manageHook gnomeConfig
-- docksEventHook reworks windows whenever a dock gets in the way
, handleEventHook = docksEventHook
, startupHook = startup
}