Skip to content

Instantly share code, notes, and snippets.

@xinuc
Created December 13, 2011 14:10
Show Gist options
  • Save xinuc/1472247 to your computer and use it in GitHub Desktop.
Save xinuc/1472247 to your computer and use it in GitHub Desktop.
xmonad.hs:33:14:
Couldn't match expected type `XConfig l0'
with actual type `xmonad-0.9.2:XMonad.Core.XConfig a0'
In the second argument of `($)', namely
`defaultConfig
{manageHook = manageDocks <+> manageHook defaultConfig,
layoutHook = avoidStruts $ layoutHook defaultConfig,
normalBorderColor = "#7c7c7c", focusedBorderColor = "#ffff00",
startupHook = setWMName "LG3D", keys = myKeys, borderWidth = 3,
terminal = "terminator"}
`additionalKeys`
[((mod4Mask .|. shiftMask, xK_z),
spawn "xscreensaver-command -lock"),
((controlMask, xK_Print), spawn "sleep 0.2; scrot -s"),
((0, xK_Print), spawn "scrot"),
((mod4Mask, xK_n), spawn "nautilus"), ....]'
In the expression:
xmonad
$ defaultConfig
{manageHook = manageDocks <+> manageHook defaultConfig,
layoutHook = avoidStruts $ layoutHook defaultConfig,
normalBorderColor = "#7c7c7c", focusedBorderColor = "#ffff00",
startupHook = setWMName "LG3D", keys = myKeys, borderWidth = 3,
terminal = "terminator"}
`additionalKeys`
[((mod4Mask .|. shiftMask, xK_z),
spawn "xscreensaver-command -lock"),
((controlMask, xK_Print), spawn "sleep 0.2; scrot -s"),
((0, xK_Print), spawn "scrot"),
((mod4Mask, xK_n), spawn "nautilus"), ....]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment