如何在 xmonad 中没有 gnome-settings-daemon 的情况下在监视器之间移动 gnome-panel?

如何在 xmonad 中没有 gnome-settings-daemon 的情况下在监视器之间移动 gnome-panel?

我正在使用 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
    }

相关内容