xmonad를 실행하기 위해 gnome-panel을 사용하고 있지만 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
}