dotfiles

configuration files for different softwares
git clone git://z3bra.org/dotfiles
Log | Files | Refs

commit 6e096ed59cac623831efba46a9bbe27d15578f2d
parent da285e123dd494409216379e8140f89625e64818
Author: Willy Goiffon <w.goiffon@gmail.com>
Date:   Fri Aug  2 20:17:07 2013

added the -real- ratpoisonrc

Diffstat:
 .gitignore  |   2 +-
 ratpoisonrc |   1 +-
 ratpoisonrc | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 3 files changed, 112 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore @@ -10,3 +10,5 @@ mutt/crypt mutt/.passwd.gpg ncmpcpp/error.log + +vim/.netrwhist diff --git a/ratpoisonrc b/ratpoisonrc @@ -1 +0,0 @@ -/home/wgoiffon/.config/ratpoison/rc- \ No newline at end of file diff --git a/ratpoisonrc b/ratpoisonrc @@ -0,0 +1,110 @@ +# ~/.ratpoisonrc + +unmanage rdesktop +unmanage screenkey + +# options +startup_message off + +# ratpoison +set border 0 +set padding 20 40 20 20 +set fgcolor #e8e9ca +set bgcolor #231f20 +set font "cure" +set winname name +set winfmt %s%8t +set inputwidth 256 +set bargravity nw +set barborder 0 +set barinpadding 1 +set barpadding 0 0 + +# aliases +alias ls exec ratpoison -c "echo $(~/bin/rpls)" +alias showroot exec ratpoison -c 'select -' -c 'only' +alias getvol exec ratpoison -c "echo vol. $(amixer sget Master | tail -1 | awk '{print $5}')" + +# hooks +addhook switchgroup only +addhook switchgroup select - +addhook switchgroup next + +# workspaces +gnew dev +gnewbg web +gnewbg chill +gmerge default +gdelete default + +## binds +escape s-space + +# session +definekey top C-M-q quit +definekey top C-M-r restart +definekey top C-M-l exec slock +bind Escape abort + +# multiscreen ? +definekey top s-Left prevscreen +definekey top s-Right nextscreen + +# workspace managing +definekey top M-F1 exec ratpoison -c "gselect 1" +definekey top M-F2 exec ratpoison -c "gselect 2" +definekey top M-F3 exec ratpoison -c "gselect 3" + +# direction +definekey top M-Tab next +definekey top s-k focusup +definekey top s-j focusdown +definekey top s-h focusleft +definekey top s-l focusright +definekey top s-K exchangeup +definekey top s-J exchangedown +definekey top s-H exchangeleft +definekey top s-L exchangeright + +# other +definekey top s-o only +definekey top s-x remove +definekey top s-exclam exec +definekey top s-colon colon + +# window managing +definekey top s-s vsplit 2/3 +definekey top s-v hsplit 2/3 +definekey top s-r resize +definekey top s-u undo +definekey top C-s-r redo +definekey top s-Escape delete + +# display root script +definekey top s-d exec ratpoison -c "showroot" -c "ls" + +# windows +definekey top M-Tab next +definekey top s-p prev +definekey top s-n next + +# layout +definekey top s-Up exec ratpoison -c "setenv rl1 $(ratpoison -c 'fdump')" +definekey top s-Down exec ratpoison -c "frestore $(ratpoison -c 'getenv rl1')" + +# applications +definekey top s-t time +definekey top s-w windows +definekey top XF86HomePage exec dwb +definekey top XF86Calculator exec urxvt +definekey top s-Return exec urxvt +definekey top Print exec ~/bin/instagram ratpoison-$(date +%Y-%m-%d).jpg +definekey top XF86Mail exec urxvt -e mutt + +# media keys +definekey top XF86AudioMute exec amixer set Master toggle; ratpoison -c "echo vol. -- $(amixer sget Master | tail -1 | awk '{print $7}')" +definekey top XF86AudioRaiseVolume exec amixer set Master 1%+ unmute; ratpoison -c getvol +definekey top XF86AudioLowerVolume exec amixer set Master 1%- unmute; ratpoison -c getvol + +# banish cursor +exec ratpoison -c "banish"