Last active
September 5, 2016 14:51
-
-
Save amonks/db69836fc17d48be49e0166d53ccc77d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
9/5/16 Andrew Monks | |
https://koekeishiya.github.io/kwm/kwmc.html | |
https://gist.github.com/amonks/db69836fc17d48be49e0166d53ccc77d | |
*/ | |
// Set default values for screen padding | |
kwmc config padding 21 0 21 0 | |
// Set default values for container gaps | |
kwmc config gap 0 0 | |
// Default tiling mode for Kwm (bsp | monocle | float) | |
kwmc config tiling bsp | |
// Let Kwm listen for hotkeys | |
kwmc config hotkeys on | |
// Automatically float windows that fail to resize | |
kwmc config float-non-resizable on | |
// Automatically resize the window to its container | |
kwmc config lock-to-container on | |
// Set focus-follows-mouse-mode to autoraise | |
kwmc config focus-follows-mouse on | |
/* Center window when made floating */ | |
kwmc config center-on-float on | |
/* The mouse will automatically move to the center | |
of the focused window */ | |
kwmc config mouse-follows-focus on | |
// Allow window focus to wrap-around | |
kwmc config cycle-focus on | |
/* // New splits become the left leaf-node */ | |
/* kwmc config spawn left */ | |
kwmc config optimal-ratio 1.6 | |
// blacklist | |
kwmc rule owner="MPlayerX" properties={float="true"} | |
// Enable border for focused window | |
kwmc config border focused off | |
kwmc config border focused size 1 | |
kwmc config border focused color 0xFFFF0000 | |
kwmc config border focused radius 0 | |
// Enable the prefix mode | |
kwmc mode prefix prefix on | |
kwmc mode prefix timeout 0.75 | |
kwmc mode prefix restore default | |
kwmc mode prefix color 0xFF458588 | |
/* Default Keybinds */ | |
// Activate prefix mode | |
kwmc bindsym cmd+alt+ctrl+shift-u mode activate prefix | |
// Quit Kwm | |
kwmc bindsym prefix-q quit | |
// Set Space Tiling Mode To BSP | |
kwmc bindsym prefix-a space -t bsp | |
// Set Space Tiling Mode To Monocle | |
kwmc bindsym prefix-o space -t monocle | |
// Set Space Tiling Mode To Floating | |
kwmc bindsym prefix-f space -t float | |
// Float Current Window | |
kwmc bindsym cmd+alt+ctrl+shift-f window -t focused | |
kwmc config standby-on-float on | |
// Rotate Window-Tree By 90degrees (Clockwise) | |
kwmc bindsym prefix-r tree rotate 90 | |
// Modify Container | |
kwmc bindsym prefix-s window -c split-mode toggle | |
kwmc bindcode prefix-1B window -c reduce 0.05 // - | |
kwmc bindcode prefix-18 window -c expand 0.05 // + | |
// Set Temporary Window Container | |
kwmc bindsym prefix-w window -t focused | |
// Give Focus To Window | |
kwmc bindsym cmd+shift+ctrl+alt-h window -f west | |
kwmc bindsym cmd+shift+ctrl+alt-l window -f east | |
kwmc bindsym cmd+shift+ctrl+alt-j window -f south | |
kwmc bindsym cmd+shift+ctrl+alt-k window -f north | |
// Swap Focused Window | |
kwmc bindsym prefix-h window -s west | |
kwmc bindsym prefix-j window -s south | |
kwmc bindsym prefix-k window -s north | |
kwmc bindsym prefix-l window -s east | |
// Move Focused Window To Space | |
kwmc bindsym cmd+shift+ctrl+alt-left window -m space left ; space -fExperimental left | |
kwmc bindsym cmd+shift+ctrl+alt-right window -m space right ; space -fExperimental right | |
// Launchers | |
kwmc bindsym prefix-t exec /Users/ajm/Dropbox/dotfiles/bin/l t | |
kwmc bindsym prefix-c exec /Users/ajm/Dropbox/dotfiles/bin/l c | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment