
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
}