Skip to content

Instantly share code, notes, and snippets.

@orian
Last active December 30, 2015 16:59
Show Gist options
  • Save orian/7858208 to your computer and use it in GitHub Desktop.
Save orian/7858208 to your computer and use it in GitHub Desktop.
Adding "swap workspace" to Xmonad

1. To imports add: import XMonad.Actions.SwapWorkspaces

2. Somewhere in file, where you have keyboard mapping add:

    -- Swap Workspaces
    , ((modm .|. controlMask,     xK_Right),  swapTo Next)
    , ((modm .|. controlMask,     xK_Left),   swapTo Prev)

3. Reload xmonad, now you can swap workspaces using combination Mod+Ctrl+Left and Mod+Ctrl+Right

4. Enjoy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment