Update kwm/khd configs

This commit is contained in:
Hunter Haugen 2016-12-02 11:02:45 -08:00
parent 2adcf1f126
commit 1f22bc856d
Signed by: hunner
GPG key ID: EF99694AA599DDAD
4 changed files with 516 additions and 192 deletions

View file

@ -8,6 +8,7 @@
lg = "log --decorate --pretty=format:'%C(yellow)%h%C(reset) %C(green)%G?%C(reset) %C(blue)%an%C(reset) %C(cyan)%cr%C(reset) %s %C(auto)%d%C(reset)' --graph --date-order" lg = "log --decorate --pretty=format:'%C(yellow)%h%C(reset) %C(green)%G?%C(reset) %C(blue)%an%C(reset) %C(cyan)%cr%C(reset) %s %C(auto)%d%C(reset)' --graph --date-order"
[diff] [diff]
tool = vimdiff tool = vimdiff
compactionHeuristic = true
[difftool "vimdiff"] [difftool "vimdiff"]
cmd = mvimdiff cmd = mvimdiff
path = /Users/hunner/local/bin/mvimdiff path = /Users/hunner/local/bin/mvimdiff

432
.khdrc Normal file
View file

@ -0,0 +1,432 @@
# sample config for khd
# NOTE(koekeishiya): A bind is written in the form:
# <keysym> [!] [<app list>] [->] : <command>
# where
# <keysym> = mode + mod + ... + mod - literal
# <keysym> = mode + mod + ... + mod - keycode (must have 0x prefix)
# <keysym> = mode + mod + ... + mod (modifier only binding)
#
# [<app,
# app, = optional list '[app1, ..., appN]' of applications
# app>] that this bind will be activated for. if the
# focused application is not contained in this list,
# the associated command will not be triggered, and
# the keypress will be passed through as normal.
#
# [!] = optional operator '!' negates the behaviour when a
# list of applications is given. this marks the bind
# as 'Hotkey_Exclude', causing the bind to not work
# when the focused application is in the given list.
#
# [->] = optional operator '->' that marks this bind as
# 'passthrough'. this causes the key to be passed
# through to the system, instead of being consumed.
#
# <command> = command is executed through '$SHELL -c' and
# follows valid shell syntax. if the $SHELL environment
# variable is not set, it will default to '/bin/bash'.
# when bash is used, the ';' delimeter can be specified
# to chain commands.
#
# to allow a command to extend into multiple lines,
# prepend '\' at the end of the previous line.
#
# an EOL character signifies the end of the bind.
# NOTE(koekeishiya) Example of passthrough
# cmd - m -> : echo "alert and minimize window" | alerter -title Test passthrough -timeout 2
# NOTE(koekeishiya) Example of app list
# alt - e [
# iTerm2,
# Terminal,
# HyperTerm
# ]
# : echo "so this is how deep the rabbit hole goes.." |\
# alerter -title Test passthrough -timeout 2
# NOTE(koekeishiya) Example of negated app list
# alt - e [
# iTerm2,
# Terminal,
# HyperTerm
# ] !
# : echo "blue pill, i choose you!" |\
# alerter -title Test passthrough -timeout 2
# NOTE(koekeishiya) Modifier only binding
# left shift -> ( right shift -> )
# left cmd -> { right cmd -> }
# khd mod_trigger_timeout 0.1
# lshift : khd -p "shift - 8"
# rshift : khd -p "shift - 9"
# lcmd : khd -p "shift + alt - 8"
# rcmd : khd -p "shift + alt - 9"
# TODO(koekeishiya): possibly allow combined syntax such as
# [switcher,ytd] + ctrl - f : khd -e "mode activate default"
# vi-mode for non-terminal applications
## remap left-control h/j/k/l -> arrow keys
#lctrl - h ![HyperTerm,Terminal,iTerm2] : khd -p "- left"
#lctrl - j ![HyperTerm,Terminal,iTerm2] : khd -p "- down"
#lctrl - k ![HyperTerm,Terminal,iTerm2] : khd -p "- up"
#lctrl - l ![HyperTerm,Terminal,iTerm2] : khd -p "- right"
#
#shift + lctrl - h ![HyperTerm,Terminal,iTerm2] : khd -p "shift - left"
#shift + lctrl - j ![HyperTerm,Terminal,iTerm2] : khd -p "shift - down"
#shift + lctrl - k ![HyperTerm,Terminal,iTerm2] : khd -p "shift - up"
#shift + lctrl - l ![HyperTerm,Terminal,iTerm2] : khd -p "shift - right"
#
## remap left-control 0 / 4 -> start / end of line
#lctrl - 0 ![HyperTerm,Terminal,iTerm2] : khd -p "cmd - left"
#lctrl - 4 ![HyperTerm,Terminal,iTerm2] : khd -p "cmd - right"
#
## remap left-control g / G -> start / end of text
#lctrl - g ![HyperTerm,Terminal,iTerm2] : khd -p "cmd - up"
#lctrl + shift - g ![HyperTerm,Terminal,iTerm2] : khd -p "cmd - down"
#
#shift + lctrl - 0 ![HyperTerm,Terminal,iTerm2] : khd -p "shift + cmd - left"
#shift + lctrl - 4 ![HyperTerm,Terminal,iTerm2] : khd -p "shift + cmd - right"
#
## remap left-control b / e -> start / end of word
#lctrl - b ![HyperTerm,Terminal,iTerm2] : khd -p "alt - left"
#lctrl - e ![HyperTerm,Terminal,iTerm2] : khd -p "alt - right"
#
#shift + lctrl - b ![HyperTerm,Terminal,iTerm2] : khd -p "shift + alt - left"
#shift + lctrl - e ![HyperTerm,Terminal,iTerm2] : khd -p "shift + alt - right"
#
## remap left-control x -> forward delete
#lctrl - x ![HyperTerm,Terminal,iTerm2] : khd -p "- delete"
# enable kwm compatibility mode
khd kwm on
# set border color for different modes
khd mode default color 0xddbdd322
khd mode switcher color 0xddd5c4a1
khd mode ytd color 0xddd75f5f
khd mode swap color 0xdd458588
khd mode tree color 0xddfabd2f
khd mode space color 0xddb16286
khd mode info color 0xddcd950c
# 0x2A is \
# toggle between modes
ctrl - 0x2A : khd -e "mode activate switcher"
switcher + ctrl - 0x2A : khd -e "mode activate default"
ytd + ctrl - 0x2A : khd -e "mode activate default"
swap + ctrl - 0x2A : khd -e "mode activate default"
space + ctrl - 0x2A : khd -e "mode activate default"
tree + ctrl - 0x2A : khd -e "mode activate default"
info + ctrl - 0x2A : khd -e "mode activate default"
switcher - y : khd -e "mode activate ytd"
switcher - m : khd -e "mode activate swap"
switcher - s : khd -e "mode activate space"
switcher - d : khd -e "mode activate tree"
switcher - i : khd -e "mode activate info"
# switcher mode
switcher - r : khd -e "reload" # reload config
switcher - return : open -na /Applications/HyperTerm.app;\
khd -e "mode activate default"
cmd - return : osascript /Users/hunner/local/bin/terminal.scpt
cmd + ctrl + alt - 9 : osascript /Users/hunner/local/bin/grayscale.scpt
cmd + alt - h : kwmc window -f west
cmd + alt - l : kwmc window -f east
cmd + alt - j : kwmc window -f south
cmd + alt - k : kwmc window -f north
switcher - n : kwmc window -fm prev
switcher - m : kwmc window -fm next
ctrl - 1 : kwmc space -fExperimental 1
ctrl - 2 : kwmc space -fExperimental 2
ctrl - 3 : kwmc space -fExperimental 3
ctrl - 4 : kwmc space -fExperimental 4
ctrl - 5 : kwmc space -fExperimental 5
ctrl - 6 : kwmc space -fExperimental 6
ctrl - 7 : kwmc space -fExperimental 7
ctrl - 8 : kwmc space -fExperimental 8
ctrl - 9 : kwmc space -fExperimental 9
ctrl - 0 : kwmc space -fExperimental 10
ctrl + shift - 1 : kwmc window -m space 1
ctrl + shift - 2 : kwmc window -m space 2
ctrl + shift - 3 : kwmc window -m space 3
ctrl + shift - 4 : kwmc window -m space 4
ctrl + shift - 5 : kwmc window -m space 5
ctrl + shift - 6 : kwmc window -m space 6
ctrl + shift - 7 : kwmc window -m space 7
ctrl + shift - 8 : kwmc window -m space 8
ctrl + shift - 9 : kwmc window -m space 9
ctrl + shift - 0 : kwmc window -m space 10
#switcher - z : kwmc space -fExperimental left
#switcher - c : kwmc space -fExperimental right
#switcher - f : kwmc space -fExperimental previous
#switcher + shift - z : kwmc window -m space left;\
# kwmc space -fExperimental left
#
#switcher + shift - c : kwmc window -m space right;\
# kwmc space -fExperimental right
#switcher + shift - 1 : kwmc display -f 0
#switcher + shift - 2 : kwmc display -f 1
#switcher + shift - 3 : kwmc display -f 2
## ytd mode
#ytd - x : ytc play;\
# khd -e "mode activate default"
#
#ytd - s : ytc mkfav;\
# khd -e "mode activate default"
#
## 0x32 == <
#ytd - 0x32 : ytc fav
#ytd - z : ytc prev
#ytd - c : ytc next
#ytd - v : ytc stop
#ytd - a : ytc volup
#ytd - d : ytc voldown
#ytd - right : ytc seekfw
#ytd - left : ytc seekbk
## swap mode
swap - h : kwmc window -s west
swap - j : kwmc window -s south
swap - k : kwmc window -s north
swap - l : kwmc window -s east
swap - m : kwmc window -s mark
swap + shift - k : kwmc window -m north
swap + shift - l : kwmc window -m east
swap + shift - j : kwmc window -m south
swap + shift - h : kwmc window -m west
swap + shift - m : kwmc window -m mark
#swap - 1 : kwmc window -m space 1
#swap - 2 : kwmc window -m space 2
#swap - 3 : kwmc window -m space 3
#swap - 4 : kwmc window -m space 4
#swap - 5 : kwmc window -m space 5
#
#swap - z : kwmc window -m space left
#swap - c : kwmc window -m space right
#
#swap + shift - 1 : kwmc window -m display 0
#swap + shift - 2 : kwmc window -m display 1
#swap + shift - 3 : kwmc window -m display 2
# space mode
space - a : kwmc space -t bsp
space - s : kwmc space -t monocle
space - d : kwmc space -t float
space - x : kwmc space -g increase horizontal
space - y : kwmc space -g increase vertical
space + shift - x : kwmc space -g decrease horizontal
space + shift - y : kwmc space -g decrease vertical
space - left : kwmc space -p increase left
space - right : kwmc space -p increase right
space - up : kwmc space -p increase top
space - down : kwmc space -p increase bottom
space - p : kwmc space -p increase all
space + shift - left : kwmc space -p decrease left
space + shift - right : kwmc space -p decrease right
space + shift - up : kwmc space -p decrease top
space + shift - down : kwmc space -p decrease bottom
space + shift - p : kwmc space -p decrease all
# tree mode
tree - f : kwmc window -z fullscreen
tree - d : kwmc window -z parent
tree - w : kwmc window -t focused
tree - r : kwmc tree rotate 90
tree - s : kwmc window -c split - mode toggle;\
khd -e "mode activate default"
tree - c : kwmc window -c type toggle;\
khd -e "mode activate default"
tree - h : kwmc window -c expand 0.05 west
tree - j : kwmc window -c expand 0.05 south
tree - k : kwmc window -c expand 0.05 north
tree - l : kwmc window -c expand 0.05 east
tree + shift - h : kwmc window -c reduce 0.05 west
tree + shift - j : kwmc window -c reduce 0.05 south
tree + shift - k : kwmc window -c reduce 0.05 north
tree + shift - l : kwmc window -c reduce 0.05 east
tree - p : kwmc tree -pseudo create
tree + shift - p : kwmc tree -pseudo destroy
tree - o : kwmc window -s prev
tree + shift - o : kwmc window -s next
# default
cmd + alt + ctrl - m : kwmc window -mk focused
cmd + alt + ctrl - h : kwmc window -mk west wrap
cmd + alt + ctrl - l : kwmc window -mk east wrap
cmd + alt + ctrl - j : kwmc window -mk south wrap
cmd + alt + ctrl - k : kwmc window -mk north wrap
#cmd - 0x2A : khd -w "aasvi93@hotmail.com"
#cmd - 7 : khd -w "\\"
#cmd - 8 : khd -w "{"
#cmd - 9 : khd -w "}"
#// Activate prefix mode
#kwmc bindsym ctrl-\ mode activate prefix
#// 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
#// Where do these translate to?
#////# Prefix is not applied globally
#////kwmc config prefix-global off
#// Quit Kwm
#kwmc bindsym cmd+alt+ctrl-q quit
#// Launch iTerm2
#//kwmc bindsym cmd-return exec osascript /Users/hunner/local/bin/iterm_window.scpt
#kwmc bindsym cmd-return exec osascript /Users/hunner/local/bin/terminal.scpt
#kwmc bindsym cmd+ctrl+alt-9 exec osascript /Users/hunner/local/bin/grayscale.scpt
#// Set Space Tiling Mode To BSP
#kwmc bindsym cmd+ctrl-a space -t bsp
#// Set Space Tiling Mode To Monocle
#kwmc bindsym cmd+ctrl-s space -t monocle
#// Set Space Tiling Mode To Floating
#kwmc bindsym cmd+ctrl-d space -t float
#// Rotate Window-Tree By 90degrees (Clockwise)
#kwmc bindsym cmd+ctrl-r tree rotate 90
#
#// Modify Container
#kwmc bindsym prefix-s window -c split-mode toggle
#kwmc bindsym prefix-h window -c reduce 0.05
#kwmc bindsym prefix-l window -c expand 0.05
#kwmc bindsym prefix-< window -c type toggle
#
#// Set Temporary Window Container
#kwmc bindsym prefix-f window -z fullscreen
#kwmc bindsym prefix-d window -z parent
#kwmc bindsym prefix-w window -t focused
#
#// Give Focus To Window
#kwmc bindsym cmd+alt-h window -f west
#kwmc bindsym cmd+alt-l window -f east
#kwmc bindsym cmd+alt-j window -f south
#kwmc bindsym cmd+alt-k window -f north
#
#// Give Focus To Screen
#kwmc bindsym prefix-2 display -f 0
#kwmc bindsym prefix-1 display -f 1
#kwmc bindsym prefix-3 display -f 2
#// Switch to space
#kwmc bindsym ctrl-1 space -fExperimental 1
#kwmc bindsym ctrl-2 space -fExperimental 2
#kwmc bindsym ctrl-3 space -fExperimental 3
#kwmc bindsym ctrl-4 space -fExperimental 4
#kwmc bindsym ctrl-5 space -fExperimental 5
#kwmc bindsym ctrl-6 space -fExperimental 6
#kwmc bindsym ctrl-7 space -fExperimental 7
#kwmc bindsym ctrl-8 space -fExperimental 8
#kwmc bindsym ctrl-9 space -fExperimental 9
#kwmc bindsym ctrl-0 space -fExperimental 10
#// Move Focused Window To Space
#kwmc bindsym ctrl+shift-1 window -m space 1
#kwmc bindsym ctrl+shift-2 window -m space 2
#kwmc bindsym ctrl+shift-3 window -m space 3
#kwmc bindsym ctrl+shift-4 window -m space 4
#kwmc bindsym ctrl+shift-5 window -m space 5
#kwmc bindsym ctrl+shift-6 window -m space 6
#kwmc bindsym ctrl+shift-7 window -m space 7
#kwmc bindsym ctrl+shift-8 window -m space 8
#kwmc bindsym ctrl+shift-9 window -m space 9
#kwmc bindsym ctrl+shift-0 window -m space 10
#// Move Focused Window To Screen
#kwmc bindsym ctrl+alt-2 window -m display 0
#kwmc bindsym ctrl+alt-1 window -m display 1
#kwmc bindsym ctrl+alt-3 window -m display 2
#// Swap Focused Window
#kwmc bindsym ctrl+alt-h window -s west
#kwmc bindsym ctrl+alt-j window -s south
#kwmc bindsym ctrl+alt-k window -s north
#kwmc bindsym ctrl+alt-l window -s east
#// kwmc bindsym ctrl+alt-m window -s mark
#// Increase Container Gaps
#kwmc bindsym prefix-x space -g increase horizontal
#kwmc bindsym prefix-y space -g increase vertical
#
#// Decrease Container Gaps
#kwmc bindsym prefix+shift-x space -g decrease horizontal
#kwmc bindsym prefix+shift-y space -g decrease vertical
#
#// Increase Screen Padding
#kwmc bindsym prefix-left space -p increase left
#kwmc bindsym prefix-right space -p increase right
#kwmc bindsym prefix-up space -p increase top
#kwmc bindsym prefix-down space -p increase bottom
#kwmc bindsym prefix-p space -p increase all
#
#// Decrease Screen Padding
#kwmc bindsym prefix+shift-left space -p decrease left
#kwmc bindsym prefix+shift-right space -p decrease right
#kwmc bindsym prefix+shift-up space -p decrease top
#kwmc bindsym prefix+shift-down space -p decrease bottom
#kwmc bindsym prefix+shift-p space -p decrease all
##// Detach Focused Window And Reinsert In Direction
##kwmc bindsym ctrl+shift-k window -m north
##kwmc bindsym ctrl+shift-l window -m east
##kwmc bindsym ctrl+shift-j window -m south
##kwmc bindsym ctrl+shift-h window -m west

View file

@ -1,6 +1,24 @@
/* /*
This is a sample config for Kwm This is a sample config for Kwm
The following statements can be used to set Kwms internal directory structure.
This is the root folder for Kwms files, the only thing this actually
specifies is the location of the 'init' script which Kwm runs upon startup.
Defaults to $HOME/.kwm
kwm_home /path/to/.kwm
This is the root folder in which all files included using 'include' must reside.
Defaults to $HOME/.kwm
kwm_include /path/to/.kwm/include
This is the folder in which all bsp-layouts managed by 'tree load' and 'tree save'
is loaded from / saved to. Defaults to $HOME/.kwm/layouts
kwm_layouts /path/to/.kwm/layouts
Commands prefixed with 'kwmc' will call Commands prefixed with 'kwmc' will call
local functions corresponding to the local functions corresponding to the
kwmc syntax. kwmc syntax.
@ -14,243 +32,115 @@ if they were written inside kwmrc.
include filename include filename
e.g: bindsym-commands in a separate file called 'binds' e.g: window-rules in a separate file called 'rules'
include binds include rules
Create variables that can be used in the below commands.
Variables are in file-scope and must be defined before
they can be used. Re-definition is also possible.
Variable names can not contain whitespace, where as
the value can.
define variable value
e.g: create a variable for the hyper-key
define hyper cmd+ctrl+alt+shift
kwmc bindsym hyper-h window -f west
*/ */
// Set default values for screen padding # Set default values for screen padding
kwmc config padding 30 10 10 10 kwmc config padding 30 10 10 10
// Set default values for container gaps # Set default values for container gaps
kwmc config gap 10 10 kwmc config gap 10 10
// Default tiling mode for Kwm (bsp | monocle | float) # Default tiling mode for Kwm (bsp | monocle | float)
kwmc config tiling bsp kwmc config tiling bsp
// Let Kwm listen for hotkeys # Automatically float windows that fail to resize
kwmc config hotkeys on
// Activate prefix mode
kwmc bindsym ctrl-\ mode activate prefix
// 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
// Where do these translate to?
////# Prefix is not applied globally
////kwmc config prefix-global off
// Time in seconds, before prefix must be re-activated
kwmc mode prefix timeout 0.75
// Automatically float windows that fail to resize
kwmc config float-non-resizable on kwmc config float-non-resizable on
// Automatically resize the window to its container # Automatically resize the window to its container
kwmc config lock-to-container on kwmc config lock-to-container on
// Set focus-follows-mouse-mode to autoraise # Set focus-follows-mouse-mode to autoraise
kwmc config focus-follows-mouse off kwmc config focus-follows-mouse on
/* Focus-follows-mouse is temporarily disabled when /*
a floating window has focus */ Focus-follows-mouse is temporarily disabled when
a floating window has focus
*/
kwmc config standby-on-float on kwmc config standby-on-float on
/* The mouse will automatically move to the center # Center window when made floating
of the focused window */ kwmc config center-on-float on
kwmc config mouse-follows-focus off
// Allow window focus to wrap-around /*
The mouse will automatically move to the center
of the focused window
*/
kwmc config mouse-follows-focus on
/*
Allows a window to be moved by dragging,
when a modifier key and left-click is held down.
Allows a window to be resized by dragging
when a modifier key and right-click is held down.
*/
kwmc config mouse-drag on
# The modifier keys to be held down to initiate mouse-drag
kwmc config mouse-drag mod shift+ctrl
# Allow window focus to wrap-around
kwmc config cycle-focus on kwmc config cycle-focus on
/* Override default settings for space 1 on screen 0 /*
Override default settings for space 1 on screen 0
kwmc config space 0 1 mode monocle kwmc config space 0 1 mode monocle
kwmc config space 0 1 padding 100 100 100 100 kwmc config space 0 1 padding 100 100 100 100
kwmc config space 0 1 gap 40 40 */ kwmc config space 0 1 gap 40 40
*/
/* Override default settings for screen 1 /*
Override default settings for screen 1
kwmc config display 1 mode bsp kwmc config display 1 mode bsp
kwmc config display 1 padding 100 100 100 100 kwmc config display 1 padding 100 100 100 100
kwmc config display 1 gap 40 40 */ kwmc config display 1 gap 40 40
*/
// Set default container split-ratio # Set default container split-ratio
kwmc config split-ratio 0.5 kwmc config split-ratio 0.5
// New splits become the left leaf-node # New splits become the left leaf-node
kwmc config spawn left kwmc config spawn left
/* Add custom tiling rules for applications that /*
does not get tiled by Kwm by default. Add custom tiling rules for applications that
This is because some applications do not have the does not get tiled by Kwm by default.
AXWindowRole and AXStandardWindowSubRole */ This is because some applications do not have the
AXWindowRole and AXStandardWindowSubRole
*/
kwmc rule owner="iTerm2" properties={role="AXDialog"} kwmc rule owner="iTerm2" properties={role="AXDialog"}
// Emacs is special? // Emacs is special?
kwmc config add-role AXWindow Emacs kwmc config add-role AXWindow Emacs
kwmc rule owner="Emacs" properties={role="AXStandardWindow"} kwmc rule owner="Emacs" properties={role="AXStandardWindow"}
/* The following commands create rules that /*
blacklists an application from Kwms tiling The following commands create rules that
blacklists an application from Kwms tiling
kwmc rule owner="Steam" properties={float="true"} kwmc rule owner="Steam" properties={float="true"}
kwmc rule owner="Photoshop" properties={float="true"} */ kwmc rule owner="Photoshop" properties={float="true"}
*/
kwmc rule owner="Lightroom" properties={float="true"} kwmc rule owner="Lightroom" properties={float="true"}
/* The following command creates a rule that /*
captures an application to the given screen, The following command creates a rule that
if the screen exists. captures an application to the given screen,
if the screen exists.
kwmc rule owner="iTunes" properties={display="1"} */ kwmc rule owner="iTunes" properties={display="1"}
*/
// Enable border for focused window # Enable border for focused window
kwmc config border focused on kwmc config border focused on
kwmc config border focused size 2 kwmc config border focused size 2
kwmc config border focused color 0xFFBDD322 kwmc config border focused color 0xFFBDD322
kwmc config border focused radius 6 kwmc config border focused radius 6
// Enable border for marked window # Enable border for marked window
kwmc config border marked on kwmc config border marked on
kwmc config border marked size 2 kwmc config border marked size 2
kwmc config border marked color 0xFFCC5577 kwmc config border marked color 0xFFCC5577
kwmc config border marked radius 6 kwmc config border marked radius 6
// Quit Kwm
kwmc bindsym cmd+alt+ctrl-q quit
// Launch iTerm2
//kwmc bindsym cmd-return exec osascript /Users/hunner/local/bin/iterm_window.scpt
kwmc bindsym cmd-return exec osascript /Users/hunner/local/bin/terminal.scpt
kwmc bindsym cmd+ctrl+alt-9 exec osascript /Users/hunner/local/bin/grayscale.scpt
// Set Space Tiling Mode To BSP
kwmc bindsym cmd+ctrl-a space -t bsp
// Set Space Tiling Mode To Monocle
kwmc bindsym cmd+ctrl-s space -t monocle
// Set Space Tiling Mode To Floating
kwmc bindsym cmd+ctrl-d space -t float
// Rotate Window-Tree By 90degrees (Clockwise)
kwmc bindsym cmd+ctrl-r tree rotate 90
// Modify Container
kwmc bindsym prefix-s window -c split-mode toggle
kwmc bindsym prefix-h window -c reduce 0.05
kwmc bindsym prefix-l window -c expand 0.05
kwmc bindsym prefix-< window -c type toggle
// Set Temporary Window Container
kwmc bindsym prefix-f window -z fullscreen
kwmc bindsym prefix-d window -z parent
kwmc bindsym prefix-w window -t focused
// Give Focus To Window
kwmc bindsym cmd+alt-h window -f west
kwmc bindsym cmd+alt-l window -f east
kwmc bindsym cmd+alt-j window -f south
kwmc bindsym cmd+alt-k window -f north
// Give Focus To Screen
kwmc bindsym prefix-2 display -f 0
kwmc bindsym prefix-1 display -f 1
kwmc bindsym prefix-3 display -f 2
// Switch to space
kwmc bindsym ctrl-1 space -fExperimental 1
kwmc bindsym ctrl-2 space -fExperimental 2
kwmc bindsym ctrl-3 space -fExperimental 3
kwmc bindsym ctrl-4 space -fExperimental 4
kwmc bindsym ctrl-5 space -fExperimental 5
kwmc bindsym ctrl-6 space -fExperimental 6
kwmc bindsym ctrl-7 space -fExperimental 7
kwmc bindsym ctrl-8 space -fExperimental 8
kwmc bindsym ctrl-9 space -fExperimental 9
kwmc bindsym ctrl-0 space -fExperimental 10
// Move Focused Window To Space
kwmc bindsym ctrl+shift-1 window -m space 1
kwmc bindsym ctrl+shift-2 window -m space 2
kwmc bindsym ctrl+shift-3 window -m space 3
kwmc bindsym ctrl+shift-4 window -m space 4
kwmc bindsym ctrl+shift-5 window -m space 5
kwmc bindsym ctrl+shift-6 window -m space 6
kwmc bindsym ctrl+shift-7 window -m space 7
kwmc bindsym ctrl+shift-8 window -m space 8
kwmc bindsym ctrl+shift-9 window -m space 9
kwmc bindsym ctrl+shift-0 window -m space 10
// Move Focused Window To Screen
kwmc bindsym ctrl+alt-2 window -m display 0
kwmc bindsym ctrl+alt-1 window -m display 1
kwmc bindsym ctrl+alt-3 window -m display 2
// Swap Focused Window
kwmc bindsym ctrl+alt-h window -s west
kwmc bindsym ctrl+alt-j window -s south
kwmc bindsym ctrl+alt-k window -s north
kwmc bindsym ctrl+alt-l window -s east
// kwmc bindsym ctrl+alt-m window -s mark
// Increase Container Gaps
kwmc bindsym prefix-x space -g increase horizontal
kwmc bindsym prefix-y space -g increase vertical
// Decrease Container Gaps
kwmc bindsym prefix+shift-x space -g decrease horizontal
kwmc bindsym prefix+shift-y space -g decrease vertical
// Increase Screen Padding
kwmc bindsym prefix-left space -p increase left
kwmc bindsym prefix-right space -p increase right
kwmc bindsym prefix-up space -p increase top
kwmc bindsym prefix-down space -p increase bottom
kwmc bindsym prefix-p space -p increase all
// Decrease Screen Padding
kwmc bindsym prefix+shift-left space -p decrease left
kwmc bindsym prefix+shift-right space -p decrease right
kwmc bindsym prefix+shift-up space -p decrease top
kwmc bindsym prefix+shift-down space -p decrease bottom
kwmc bindsym prefix+shift-p space -p decrease all
// Mark Window
//kwmc bindsym cmd+alt+ctrl-m window -mk focused
//kwmc bindsym cmd+alt+ctrl-h window -mk west wrap
//kwmc bindsym cmd+alt+ctrl-l window -mk east wrap
//kwmc bindsym cmd+alt+ctrl-j window -mk south wrap
//kwmc bindsym cmd+alt+ctrl-k window -mk north wrap
// I don't know what these do; they don't work
// kwmc bindsym cmd+alt-n window -fm prev
// kwmc bindsym cmd+alt-m window -fm next
// Pseudo containers
//kwmc bindsym cmd+ctrl+alt-p tree -pseudo create
//kwmc bindsym cmd+ctrl+alt-o tree -pseudo destroy
//kwmc bindsym ctrl+alt-p window -s prev
//kwmc bindsym ctrl+alt-n window -s next
// Detach Focused Window And Reinsert In Direction
kwmc bindsym ctrl+shift-k window -m north
kwmc bindsym ctrl+shift-l window -m east
kwmc bindsym ctrl+shift-j window -m south
kwmc bindsym ctrl+shift-h window -m west
// Detach Marked Window And Reinsert At Focused Window
//kwmc bindsym ctrl+shift-x window -m mark
// Autowrite
//kwmc bindsym cmd-7 write \
//kwmc bindsym cmd-8 write {
//kwmc bindsym cmd-9 write }

View file

@ -92,6 +92,7 @@ setw -g aggressive-resize on
### Colors ### Colors
set -ga terminal-overrides ",screen-256color:Tc"
set -g status-bg '#4e4e4e' set -g status-bg '#4e4e4e'
set -g status-fg '#ffffff' set -g status-fg '#ffffff'
set -g window-status-format '#I:#W#F' set -g window-status-format '#I:#W#F'