Created
November 14, 2015 19:57
-
-
Save franksn/43f1479b7ab4c6b346f0 to your computer and use it in GitHub Desktop.
ratpoisonrc
This file contains 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
# ~/.ratpoisonrc | |
# options | |
startup_message off | |
# ratpoison | |
set border 6 | |
set padding 20 20 20 20 | |
set fgcolor #6b6254 | |
set fwcolor #6b6254 | |
set bgcolor #d9c5a1 | |
set bwcolor #d9c5a1 | |
set font Hack-8 | |
set winname name | |
set winfmt %s%8t | |
set inputwidth 256 | |
set bargravity nw | |
set barborder 0 | |
set barinpadding 0 | |
set barpadding 4 2 | |
# hooks | |
addhook switchgroup only | |
addhook switchgroup select - | |
addhook switchgroup next | |
# workspaces | |
gnew g1 | |
gnewbg g2 | |
gnewbg g4 | |
gnewbg g5 | |
gmerge default | |
gdelete default | |
# workspace managing | |
definekey top M-1 exec ratpoison -c "gselect 1" | |
definekey top M-2 exec ratpoison -c "gselect 2" | |
definekey top M-3 exec ratpoison -c "gselect 3" | |
definekey top M-4 exec ratpoison -c "gselect 4" | |
definekey top M-5 exec ratpoison -c "gselect 5" | |
definekey top M-p exec ratpoison -c "gprev" | |
definekey top M-n exec ratpoison -c "gnext" | |
## binds | |
escape s-space | |
# session | |
definekey top C-M-q quit | |
definekey top C-M-r restart | |
definekey top M-l exec xtrlock && beep -f 5000 -l 5 -r 5 | |
bind Escape abort | |
# multiscreen ? | |
definekey top s-Left prevscreen | |
definekey top s-Right nextscreen | |
# 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 | |
# 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 | |
# banish cursor | |
#exec sxhkd -c /home/franksn/.config/sxhkd/sxhkdrc.ratpoison | |
exec ratpoison -c "banish" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment