myMouseBindings (XConfig {XMonad.modMask = modm}) = M.fromList $
    concat $ map modsMouseBindings $
    -- mod-button1, Set the window to floating mode and move by dragging
    [ (mainmods, button1, (\w -> focus w >> mouseMoveWindow w))
    , (mainmods, button2, (\w -> focus w >> windows W.shiftMaster))

    -- mod-button3, Set the window to floating mode and resize by dragging
    , (mainmods, button3, (\w -> focus w >> mouseResizeWindow w))

    -- alt + scroll = workspace up/down
    , (mainmods, button4, (\w -> windowUp))
    , (mainmods, button5, (\w -> windowDown))
    ]
        where
            mainmods = [modm, mod1Mask]

------------------------------------------------------------------------
-- Layouts:

-- You can specify and transform your layouts by modifying these values.
-- If you change layout bindings be sure to use 'mod-shift-space' after
-- restarting (with 'mod-q') to reset your layout state to the new
-- defaults, as xmonad preserves your old layout settings by default.
--
-- The available layouts.  Note that each layout is separated by |||,
-- which denotes layout choice.
--
myMouseBindings (XConfig {XMonad.modMask = modm}) = M.fromList $
    concat $ map modsMouseBindings $
    -- mod-button1, Set the window to floating mode and move by dragging
    [ (mainmods, button1, (\w -> focus w >> mouseMoveWindow w))
    , (mainmods, button2, (\w -> focus w >> windows W.shiftMaster))

    -- mod-button3, Set the window to floating mode and resize by dragging
    , (mainmods, button3, (\w -> focus w >> mouseResizeWindow w))

    -- alt + scroll = workspace up/down
    , (mainmods, button4, (\w -> windowUp))
    , (mainmods, button5, (\w -> windowDown))
    ]
        where
            mainmods = [modm, mod1Mask]

------------------------------------------------------------------------
-- Layouts:

-- You can specify and transform your layouts by modifying these values.
-- If you change layout bindings be sure to use 'mod-shift-space' after
-- restarting (with 'mod-q') to reset your layout state to the new
-- defaults, as xmonad preserves your old layout settings by default.
--
-- The available layouts.  Note that each layout is separated by |||,
-- which denotes layout choice.
--
myMouseBindings (XConfig {XMonad.modMask = modm}) = M.fromList $
    concat $ map modsMouseBindings $
    -- mod-button1, Set the window to floating mode and move by dragging
    [ (mainmods, button1, (\w -> focus w >> mouseMoveWindow w))
    , (mainmods, button2, (\w -> focus w >> windows W.shiftMaster))

    -- mod-button3, Set the window to floating mode and resize by dragging
    , (mainmods, button3, (\w -> focus w >> mouseResizeWindow w))

    -- alt + scroll = workspace up/down
    , (mainmods, button4, (\w -> windowUp))
    , (mainmods, button5, (\w -> windowDown))
    ]
        where
            mainmods = [modm, mod1Mask]

------------------------------------------------------------------------
-- Layouts:

-- You can specify and transform your layouts by modifying these values.
-- If you change layout bindings be sure to use 'mod-shift-space' after
-- restarting (with 'mod-q') to reset your layout state to the new
-- defaults, as xmonad preserves your old layout settings by default.
--
-- The available layouts.  Note that each layout is separated by |||,
-- which denotes layout choice.
--