lamarelle.org

HADOPI - Le Net en France : black-out


Ratpoison

my ~/.ratpoisonrc



 Ratpoison can be customized by creating a ~/.ratpoisonrc startup file.
 Here's one (idiotic maybe, but working) :

# Set the prefix key
escape Super_L
# Ratcommands
alias xterm exec urxvt
bind g abort
bind W fselect
bind greater focusprev
bind comma select
bind period select
bind x fselect
bind X swap
bind C-x swap
bind e exec
bind C-less fselect
bind less focus
bind M-space focus
bind d dedicate
bind Menu fselect
bind Escape only
bind m only
bind o only
bind C-Escape undo
bind C-oe prev
bind C-space prev
bind N inext
bind P iprev
bind S-space inext
bind C-S-space iprev
bind c delete
bind oe select 0
bind twosuperior select 0
bind threesuperior select 0
bind z select 0
bind ampersand select 1
bind eacute select 2
bind quotedbl select 3
bind apostrophe select 4
bind parenleft select 5
bind minus select 6
bind egrave select 7
bind underscore select 8
bind ccedilla select 9
bind KP_0 select 0
bind KP_1 select 1
bind KP_2 select 2
bind KP_3 select 3
bind KP_4 select 4
bind KP_5 select 5
bind KP_6 select 6
bind KP_7 select 7
bind KP_8 select 8
bind KP_9 select 9
bind h time
bind S-End quit
bind minus hsplit 3/5
bind d hsplit 3/5
bind D hsplit 1/2
bind equal vsplit 3/5
bind plus vsplit 1/2
# Apps
bind S-Return exec urxvt
bind M-r exec gmrun
bind M-u exec urxvt -pe tabbed
# rpws (workspaces) commands
bind F1 exec /usr/bin/rpws 1
bind F2 exec /usr/bin/rpws 2
bind F3 exec /usr/bin/rpws 3
bind F4 exec /usr/bin/rpws 4
bind F5 exec /usr/bin/rpws 5
bind F6 exec /usr/bin/rpws 6
bind M-oe exec /usr/bin/rpws 1
bind M-twosuperior exec /usr/bin/rpws 1
bind M-threesuperior exec /usr/bin/rpws 1
bind M-z exec /usr/bin/rpws 1
bind M-ampersand exec /usr/bin/rpws 1
bind M-eacute exec /usr/bin/rpws 2
bind M-quotedbl exec /usr/bin/rpws 3
bind M-apostrophe exec /usr/bin/rpws 4
bind M-parenleft exec /usr/bin/rpws 5
bind M-minus exec /usr/bin/rpws 6
bind M-KP_1 exec /usr/bin/rpws 1
bind M-KP_2 exec /usr/bin/rpws 2
bind M-KP_3 exec /usr/bin/rpws 3
bind M-KP_4 exec /usr/bin/rpws 4
bind M-KP_5 exec /usr/bin/rpws 5
bind M-KP_6 exec /usr/bin/rpws 6
bind M-w exec /usr/bin/rpws 1
bind M-x exec /usr/bin/rpws 2
bind M-c exec /usr/bin/rpws 3
bind M-v exec /usr/bin/rpws 4
bind M-b exec /usr/bin/rpws 5
bind M-n exec /usr/bin/rpws 6
bind M-q exec /usr/bin/rpws 1
bind M-s exec /usr/bin/rpws 2
bind M-ugrave exec /usr/bin/rpws 3
bind M-asterisk exec /usr/bin/rpws 4
bind M-comma exec /usr/bin/rpws 4
bind M-semicolon exec /usr/bin/rpws 5
bind M-colon exec /usr/bin/rpws 6
bind M-exclam exec /usr/bin/rpws 7
bind M-dollar exec /usr/bin/rpws 8
bind M-dead_circumflex exec /usr/bin/rpws 9
# bind Y to store the current frame layout in slot #1
bind Y exec /usr/bin/ratpoison -c "setenv fs1 `/usr/bin/ratpoison -c 'fdump'`"
# bind y to restore the frame layout in slot #1
bind y exec /usr/bin/ratpoison -c "frestore `/usr/bin/ratpoison -c 'getenv fs1'`"
# Autres
#defwinname name
#set winname class
startup_message off
defborder 0
defpadding 0 0 0 0
defbarpadding 0 0 0 0
hsplit 3/5
exec xsetroot -solid grey20
exec xsetroot -cursor_name left_ptr
#exec urxvt -pe tabbed &
exec xbindkeys &
exec xscreensaver -no-splash &
# Store the current frame layout
exec /usr/bin/ratpoison -c "setenv fs1 `/usr/bin/ratpoison -c 'fdump'`"
# Nine workspaces with /usr/bin/rpws
exec /usr/bin/rpws init 9 -k &
# ignore list (empty)


  Then, my ~/.xinitrc file to start Ratpoison ( —  same comment as above..)

#!/bin/sh
xrdb -merge .Xresources
xrdb -merge .Xdefaults
test -x /usr/local/bin/numlockx && /usr/local/bin/numlockx on
xset +fp $HOME/.fonts
xbindkeys &
xscreensaver-command -exit
xscreensaver -no-splash &
exec ratpoison

lamarelle.org

Top of the page