hootiegibbon

Alternate .ratpoisonrc

Feb 4th, 2012
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.13 KB | None | 0 0
  1. #Stop startup mesg
  2. startup_message off
  3. exec ratpoison -c "echo Greetings and Salutations $USER"
  4.  
  5. #Set up screen-splits
  6.  
  7. bind F1 exec ratpoison -c "select -" -c "only" -c "next" -c "echo Fullscreen!"
  8. bind F2 exec ratpoison -c "select -" -c "only" -c "vsplit" -c "next" -c "echo Layout 1"
  9. bind F3 exec ratpoison -c "select -" -c "only" -c "hsplit" -c "next" -c "echo Layout 2"
  10. bind F4 exec ratpoison -c "select -" -c "only" -c "hsplit" -c "next" -c "focusright" -c "next" -c "vsplit" -c "next" -c "focusleft" -c "resize 200 -40" -c "next" -c "echo Layout 3"
  11. bind F5 exec ratpoison -c "select -" -c "only" -c "vsplit" -c "next" -c "hsplit" -c "next" -c "focusdown" -c "hsplit" -c "next" -c "echo Layout 4"
  12. bind F6 exec ratpoison -c "select -" -c "only" -c "vsplit" -c "next" -c "focusdown" -c "hsplit" -c "next" -c "echo Layout 5"
  13.  
  14. #Workspaces stuff 10 workspaces enough>?
  15.  
  16. exec rpws init 10 -k
  17.  
  18. # Set the prefix key to that of somthing I have almost never used..
  19. escape notsign
  20.  
  21. #the RIGHT Crontrol is the escape key
  22. #Set the contrl-t key to something easier
  23. # this will change the behavior of ratpoison to use a single control key instead of the combination of the ctrl-t.
  24. # The control key set by this string is the "right control" key on the right side of keyboards, it will also mean you can use the notsign key as an alternate.
  25. definekey top Control_R readkey root
  26. definekey root Control_R link notsign
  27. unbind C-t
  28.  
  29.  
  30. #use the app name rather than title in the window list
  31. defwinname class
  32.  
  33. #app groups? let me know if you figure out groups
  34. #gnewbg one
  35. #gnewbg two
  36. #gnewbg three
  37.  
  38. #copypasteselectedhighlightedlinks into browser
  39. bind g exec xxxterm -n `$RATPOISON -c getsel`
  40.  
  41. #search for highlighted by using copy the escapekey + \ to paste that directly into a search engine
  42. bind backslash exec xxxterm -e "tabnew https://startpage.com/do/metasearch.pl?query=`$RATPOISON -c getsel`"
  43.  
  44.  
  45. #I prefer smaller fonts for information stuff
  46. set font "terminus:size=10"
  47. set winname name
  48. set winfmt %n %s %t
  49. set winliststyle column
  50. set wingravity center
  51. set transgravity center
  52. set maxsizegravity c
  53. #this next one gives enough room for my conky script to fit in
  54. set padding 0 12 0 0
  55. set border 1
  56. set barborder 1
  57. set barpadding 4 4
  58. set bargravity n
  59. set inputwidth 350
  60. set fgcolor grey
  61. set bgcolor #090909
  62. set fwcolor grey
  63. set bwcolor #343434
  64. set waitcursor 3
  65. set historysize 50
  66. set maxundos 50
  67. #still not got the grip of this next one
  68. rudeness 12
  69.  
  70. bind a exec ratpoison -c "echo `date '+%A %d %B, %Y %R'`"
  71. bind B exec ratpoison -c "echo `acpi -V | sed 's/ //g'`"
  72. bind c exec xterm
  73. bind C-c exec vte --reverse
  74.  
  75. #pointerstuff
  76. exec xsetroot -cursor_name left_ptr
  77.  
  78. #alias keys within ratpoison
  79. bind semicolon colon
  80. bind colon exec
  81. #bind greater gnext
  82. #bind less gprev
  83.  
  84. #following to automate the use of tmpwm
  85. bind C-M-space exec ratpoison -c "tmpwm icewm-light" -c "echo returning you to ratpoison"
  86.  
  87. # I found that post return to ratpoison that my terminals ie sakura and vte were messed up a little
  88. #so as a work around I suggest uding teh following line whch will open up a new Xserver on ctrl+alt+F9
  89. bind C-M-Insert exec startx /home/$USER/.xserver2instruct -- :1
  90.  
  91. #the following do not need the escapekey to action C=Control s=mod4 S=Shift M=Alt
  92. #
  93.  
  94. definekey top C-F1 exec /usr/bin/xxxterm
  95. definekey top C-F2 exec /usr/bin/sylpheed
  96. definekey top C-F3 exec /usr/bin/xchat
  97. definekey top C-F4 exec gpicview
  98. definekey top C-F5 exec pcmanfm
  99. definekey top C-F6 exec beaver
  100. definekey top C-F7 exec pcc
  101. definekey top C-F8 exec gksu dbus-launch /usr/sbin/synaptic
  102. #definekey top C-F9 exec
  103.  
  104. definekey top C-Print exec screenie
  105. definekey top M-x exec xlock
  106. definekey top M-Return exec xterm
  107. definekey top M-r exec dmenu_run
  108. definekey top M-Escape delete
  109. definekey top M-XF86Back prev
  110. definekey top M-XF86Forward next
  111. definekey top M-Tab Next
  112. definekey top M-S-Tab Prev
  113. definekey top M-bracketleft exec ratpoison -c "resize -20 0"
  114. definekey top M-bracketright exec ratpoison -c "resize +20 0"
  115. definekey top M-braceleft exec ratpoison -c "resize 0 +20"
  116. definekey top M-braceright exec ratpoison -c "resize 0 -20"
Advertisement
Add Comment
Please, Sign In to add comment