dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit d41d15f10dab27c08b6b12fde13f5d1cd7465638
parent d448838dc29ffbf1bdc675769925b866666e35bb
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Fri,  5 Feb 2016 20:33:39 -0800

create symlinks for kwm

Diffstat:
A.kwm/kwmrc | 188+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mcreate_symlinks.sh | 4+++-
2 files changed, 191 insertions(+), 1 deletion(-)

diff --git a/.kwm/kwmrc b/.kwm/kwmrc @@ -0,0 +1,188 @@ +# This is a sample config for Kwm +# The commands listed here can be of +# two types. +# +# Commands prefixed with 'kwmc' will call +# local functions corresponding to the +# kwmc syntax. +# +# To run a system command, use the prefix +# 'sys' and then the requested command +# e.g 'sys mvim' would open macvim + +# Set default values for screen padding +kwmc config padding top 40 +#kwmc config padding top 20 +kwmc config padding bottom 20 +kwmc config padding left 20 +kwmc config padding right 20 + +# Set default values for container gaps +kwmc config gap vertical 15 +kwmc config gap horizontal 15 + +# Allow Kwm to tile windows +kwmc config tiling enable + +# Let Kwm listen for hotkeys +kwmc config hotkeys enable + +# Set prefix for Kwms hotkeys +kwmc config prefix ctrl-x + +# Prefix is not applied globally +kwmc config prefix-global disable + +# Time in seconds, before prefix must be re-activated +kwmc config prefix-timeout 0.75 + +# Automatically float windows that fail to resize +kwmc config float-non-resizable enable + +# Float a window if moved using the mouse +kwmc config dragndrop disable + +# Set focus-follows-mouse-mode to autoraise +kwmc config focus autoraise + +# Focus-follows-mouse is temporarily disabled when +# a floating window has focus +kwmc config focus standby-on-float enable + +# The mouse will automatically move to the center +# of the focused window +kwmc config focus mouse-follows enable + +# Allow window focus to wrap-around +kwmc config cycle-focus screen # all | disabled + +# Default tiling mode for new spaces +kwmc config space bsp + +# Override default tiling mode for given monitors +# kwmc config screen 0 bsp +# kwmc config screen 1 monocle + +# Set default container split-ratio +kwmc config split-ratio 0.5 + +# New splits become the left leaf-node +kwmc config spawn left + +# Add custom tiling rules for applications that +# does not get tiled by Kwm by default. +# This is because some applications do not have the +# AXWindowRole and AXStandardWindowSubRole +kwmc config add-role AXDialog iTerm2 + +# The following command blacklists a specific application +# from Kwms tiling (PS: The app name is case-sensitive) +# If the name consist of multiple words, the command +# looks like: kwmc config float Google Chrome +kwmc config float Steam +kwmc config float Photoshop + +# The following command captures an application to the +# given screen, if the screen exists. By doing this +# the application can no longer be moved to other screens +# kwmc config capture 1 iTunes + +# Enable border for focused window +kwmc config focused-border enable +kwmc config focused-border size 5 +kwmc config focused-border color FFBDD322 + +# Enable border for marked window +kwmc config marked-border enable +kwmc config marked-border size 5 +kwmc config marked-border color FFCC5577 + +######## Default Keybinds ######## + +# Quit Kwm +kwmc bind cmd+alt+ctrl-q quit + +# Launch iTerm2 +kwmc bind cmd-return sys open -na /Applications/iTerm2.app + +# Toggle Focus Autoraise +kwmc bind cmd+alt+ctrl-t config focus toggle + +# Set Space Tiling Mode To BSP +kwmc bind cmd+ctrl-a space -t bsp + +# Set Space Tiling Mode To Monocle +kwmc bind cmd+ctrl-s space -t monocle + +# Set Space Tiling Mode To Floating +kwmc bind cmd+ctrl-d space -t float + +# Rotate Window-Tree By 90* (Clockwise) +kwmc bind cmd+ctrl-r tree -r 90 + +# Modify Container +kwmc bind prefix-s window -c split +kwmc bind prefix-h window -c reduce 0.05 +kwmc bind prefix-l window -c expand 0.05 + +# Set Temporary Window Container +kwmc bind prefix-f window -t fullscreen +kwmc bind prefix-p window -t parent +kwmc bind prefix-w window -t float + +# Mark Window +kwmc bind cmd+alt-m window -t mark + +# Give Focus To Window +kwmc bind cmd+alt-h window -f west +kwmc bind cmd+alt-l window -f east +kwmc bind cmd+alt-j window -f south +kwmc bind cmd+alt-k window -f north + +# Give Focus To Screen +#kwmc bind cmd+alt-1 screen -f 0 +#kwmc bind cmd+alt-2 screen -f 1 +#kwmc bind cmd+alt-3 screen -f 2 + +# Move Focused Window +kwmc bind ctrl+alt-h window -s west +kwmc bind ctrl+alt-j window -s south +kwmc bind ctrl+alt-k window -s north +kwmc bind ctrl+alt-l window -s east + +# Swap With Marked Window +kwmc bind ctrl+alt-m window -s mark + +# Detach Focused Window And Reinsert In Direction +kwmc bind ctrl+shift-k window -x north +kwmc bind ctrl+shift-l window -x east +kwmc bind ctrl+shift-j window -x south +kwmc bind ctrl+shift-h window -x west + +# Detach Marked Window And Reinsert At Focused Window +kwmc bind ctrl+shift-x window -x mark + +# Move Focused Window To Screen +kwmc bind ctrl+alt-1 screen -m 0 +kwmc bind ctrl+alt-2 screen -m 1 +kwmc bind ctrl+alt-3 screen -m 2 + +# Increase Container Gaps +kwmc bind prefix-x space -g increase horizontal +kwmc bind prefix-y space -g increase vertical + +# Decrease Container Gaps +kwmc bind prefix+shift-x space -g decrease horizontal +kwmc bind prefix+shift-y space -g decrease vertical + +# Increase Screen Padding +kwmc bind prefix-leftarrow space -p increase left +kwmc bind prefix-rightarrow space -p increase right +kwmc bind prefix-uparrow space -p increase top +kwmc bind prefix-downarrow space -p increase bottom + +# Decrease Screen Padding +kwmc bind prefix+shift-leftarrow space -p decrease left +kwmc bind prefix+shift-rightarrow space -p decrease right +kwmc bind prefix+shift-uparrow space -p decrease top +kwmc bind prefix+shift-downarrow space -p decrease bottom diff --git a/create_symlinks.sh b/create_symlinks.sh @@ -17,7 +17,9 @@ for F in .bashrc .vimrc .inputrc .tmux.conf .xpdfrc .signature .Xresources \ done # Home folder dotfolders -for F in .colors .config/uzbl .config/awesome .config/dwb .config/bspwm .config/sxhkd .config/luakit .config/openbox .config/zathura .tmuxinator .i3 .mutt .ncmpcpp .vim .vimperrator .w3m wallpapers; do +for F in .colors .config/uzbl .config/awesome .config/dwb .config/bspwm \ + .config/sxhkd .config/luakit .config/openbox .config/zathura .tmuxinator \ + .i3 .mutt .ncmpcpp .vim .vimperrator .w3m wallpapers .kwm; do SOURCE=$PWD/$F TARGET=~/$F