# http://fabien.benetou.fr/Tools/ratpoison startup_message off set border 0 # managing multiple screens # consider creating dedicated bindings to set additional screen on and off via xrandr # might requires restart, can be problematic # see http://www.nongnu.org/ratpoison/doc/Multiple-Monitors.html # http://www.thinkwiki.org/wiki/Xorg_RandR_1.2 # note that ctN jumps to the next screen ( and goes back to #1) # also frames are numbered accross screens making it easier # TODO # better PIM integration # full screen option? # set fs=on or autocmd # deactivate autoscroll # dedicated skin with small font and dark color scheme # consider easy interaction # e.g. ticking task or going up/down the hierarchy stack # maybe a script would be more adapte than a wiki page # firefox -new-window http://fabien.benetou.fr/Cognition/PriorityByEconomicalSystem?action=print#Demo #trick to execute the last command added to this script, useful to avoid restart/quit #tail -1 .ratpoisonrc | sed "s/.*/'\0'/" | xargs ratpoison -c #can be generalized with grep PATTERN instead of tail -1 # http://stumpwm.svkt.org/cgi-bin/ratpoison.pl/ChangeDefaultTerminal unbind c bind c exec urxvt +hold -tn rxvt-unicode # see also crontab for notifications of tasks done (specified there the DISPLAY) # e.g. 0 8,12,19 * * * mirrors_rsync; ratpoison -c "echo mirrors_rsync done" # map keys based on former AHK settings # exec ssh-agent (not required, started earlier) # check SSH_AUTH_SOCK for making it available in crontab # http://www.ibm.com/developerworks/library/l-keyc2/ # echo $SSH_AUTH_SOCK > ~/.current_SSH_AUTH_SOCK exec crontab -l | sed "/^SSH_AUTH_SOCK/s,[^=]*$,$SSH_AUTH_SOCK," | crontab exec sleep 120 && ssh utopiah@benetou.fr -D 23456 -N # note that this has to be delayed in order to let ssh-add be completed # consider instead autossh -f utopiah@benetou.fr -D 23456 -N #exec nm-applet #exec nmcli con up id SFR # with Paris coordinates exec redshift -l 48.8:2.3 -t 6000:4000 #------------------------------------------------------------------------------ # starting the visual set up # XXX frame and app should be coherent in order to switch faster vsplit 3/4 fselect 1 # consider execf 1 urxvt +hold instead # consider autossh #exec urxvt +hold -e ssh -t utopiah@benetou.fr screen -raAD # does not work until the key has been added first, better let call this manually exec urxvt +hold -tn rxvt-unicode # then go down shell then vsplit 1/4 hsplit 2/3 fselect 2 # exec urxvt -hold -tn rxvt-unicode -e cal # not that useful exec urxvt +hold -e ssh-add /home/fabien/.ssh/id_dsa fselect 0 exec firefox https://self/wiki/Scenarii/MemoryLoss bind Z exec uzbl-browser bind D exec espeak "Attention, attention, the deliport has been opened. I repeat. The deliport has been opened" bind W exec ~/bin/con_restart # if the user has validated its key under 120seconds this should not be required bind F1 exec ssh utopiah@benetou.fr -D 23456 -N bind F5 exec gvim # works well with ## YouTube (arrows on focus even allow to change time, volum and home/end to jump to the start and end) ## Vimeo (here too but much smaller steps) bind F9 exec ratpoison -c "ratwarp 5 30" -c ratclick -c "fselect 0" bind F10 exec ratpoison -c "ratwarp 50 50" -c ratclick -c "fselect 0" # active autoscroll in evince (have to press "s" to validate or esc to cancel) bind F4 exec ratpoison -c "ratwarp 200 200" -c "ratclick 3" -c "ratwarp 210 250" bind C exec urxvt +hold -e sudo su