Skip to content

Instantly share code, notes, and snippets.

@spadino
Created April 9, 2016 23:11
Show Gist options
  • Save spadino/e22ee75f9e0259ff411cd6e25d5bcba0 to your computer and use it in GitHub Desktop.
Save spadino/e22ee75f9e0259ff411cd6e25d5bcba0 to your computer and use it in GitHub Desktop.
bugged bindings for kwm
####### Keybinds #######
# Set prefix for Kwms hotkeys
kwmc config prefix-key ctrl+alt+cmd+shift-a
# Set space key
kwmc config spaces-key ctrl
# Prefix is not applied globally
kwmc config prefix-global off
# Time in seconds, before prefix must be re-activated
kwmc config prefix-timeout 0.7
# Quit Kwm
kwmc bind prefix-q quit
# Reload configuration
kwmc bind prefix-r config reload
#############
# Launchers #
#############
# iTerm
kwmc bind prefix-t sys ~/.kwm/launchers/new-iTerm.sh
# Finder
kwmc bind prefix-f sys open ~
kwmc bind prefix-d sys open ~/Documents/Development
kwmc bind prefix-l sys open ~/Liuteria
# Postbox
kwmc bind prefix-m sys open -a /Applications/Postbox.app
# Safari
kwmc bind prefix-s sys ~/.kwm/launchers/new-Safari-window.sh
###############
# Screenshots #
###############
kwmc bind prefix+shift-1 sys ~/.kwm/scripts/screencapture -c
kwmc bind prefix+shift-2 sys ~/.kwm/scripts/screencapture -s
kwmc bind prefix+shift-3 sys ~/.kwm/scripts/screencapture -w
kwmc bind prefix+shift-1 sys ~/.kwm/scripts/screencapture
################
# Tree Presets #
################
kwmc bind prefix-1
kwmc bind prefix-2 tree restore half
kwmc bind prefix-3 tree restore 2up1down
kwmc bind prefix-4 tree restore 2left1right
kwmc bind prefix-5 tree restore webdesign
kwmc bind ctrl+shift-r tree -c refresh
#####################
# Window Manegement #
#####################
# Set node to tiling|monocle
kwmc bind cmd+ctrl+alt-\ tree -c toggle
# Rotate Window-Tree By 90* (Clockwise)
kwmc bind cmd+ctrl-r tree -r 90
#### Container Modifiers ####
#
# Modify Container
kwmc bind cmd+ctrl+alt-/ window -c split
kwmc bind cmd+ctrl+alt-, window -c reduce 0.05
kwmc bind cmd+ctrl+alt-. window -c expand 0.05
# Set Temporary Window Container
kwmc bind prefix+cmd-s window -t fullscreen
kwmc bind prefix+cmd-t window -t parent
kwmc bind prefix+cmd-f window -t float
kwmc bind cmd+ctrl+alt-space window -t parent
#### Window Movements ####
#
# Give Focus To Window
kwmc bind cmd+alt-left window -f west
kwmc bind cmd+alt-right window -f east
kwmc bind cmd+alt-down window -f south
kwmc bind cmd+alt-up window -f north
# Focus inside monocles containers
kwmc bind cmd+alt+shift-up window -fm prev
kwmc bind cmd+alt+shift-down window -fm next
# Move Focused Window
kwmc bind ctrl+alt-left window -s west
kwmc bind ctrl+alt-down window -s south
kwmc bind ctrl+alt-up window -s north
kwmc bind ctrl+alt-right window -s east
# Move Focused Window one space Left/Right
kwmc bind ctrl+cmd-left window -m space left
kwmc bind ctrl+cmd-right window -m space right
# Move Focused Window to 'n' space
kwmc bind ctrl+cmd-1 window -m space 1
kwmc bind ctrl+cmd-2 window -m space 2
kwmc bind ctrl+cmd-3 window -m space 3
kwmc bind ctrl+cmd-4 window -m space 4
kwmc bind ctrl+cmd-5 window -m space 5
kwmc bind ctrl+cmd-6 window -m space 6
kwmc bind ctrl+cmd-7 window -m space 7
kwmc bind ctrl+cmd-8 window -m space 8
kwmc bind ctrl+cmd-9 window -m space 9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment