martes, 17 de mayo de 2011

Ratpoison bindings without prefix key

My window manager of choice is ratpoison. It's a really minimalist tiling wm heavily inspired by gnu screen. As such, it has a prefix key (c-t by default) and most of the bindings mimic screen ones.

At work, I recently discovered that my boss uses ratpoison too (my project manager uses xmonad, great team, isn't it). He uses ratpoison with a different configuration scheme, banishing prefix key, and using definekey at toplevel for every command.

I'm not sure whether I like this configuration or not, but I'm going to try this for a few days, and see if it works ok or what. I've written some lines to enable toplevel bindings using the super key.

Avoiding c-t as a prefix key has its advantages, but now, 'super' key chords are all clobbered by ratpoison. We'll see how it works out.

#http://puntoblogspot.blogspot.com/2011/05/ratpoison-bindings-without-prefix-key.html
definekey top s-h focusleft
definekey top s-l focusright
definekey top s-k focusup
definekey top s-j focusdown
definekey top s-s vsplit
definekey top s-v hsplit
definekey top s-n nextscreen
definekey top s-p prevscreen
definekey top s-space next
definekey top s-u undo
definekey top s-o only
definekey top s-0 select 0
definekey top s-1 select 1
definekey top s-2 select 2
definekey top s-3 select 3
definekey top s-4 select 4
definekey top s-5 select 5
definekey top s-6 select 6
definekey top s-7 select 7
definekey top s-8 select 8
definekey top s-9 select 9
view raw .ratpoisonrc hosted with ❤ by GitHub

No hay comentarios: