dot-ratpoisonrc 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #-----------------------------------------------------------------------------
  2. # Misc
  3. #-----------------------------------------------------------------------------
  4. # Banish the mouse on startup
  5. banish
  6. # Change default escape key
  7. escape M-w
  8. # Facilitate setting binds to the top keymap
  9. alias topbind definekey top
  10. # Disable startup message
  11. set startupmessage 0
  12. # Resizing
  13. set resizeunit 20
  14. topbind M-r resize
  15. # Show time
  16. topbind M-t time
  17. # Banish the rat to the bottom left corner of the screen on any key press
  18. addhook key banish
  19. # Multiple workspaces
  20. exec /usr/bin/rpws init 6 -k
  21. # Workspaces movement
  22. topbind C-M-l rpwsn
  23. topbind C-M-h rpwsp
  24. topbind C-M-L rpwsmn
  25. topbind C-M-H rpwsmp
  26. # Styling
  27. set border 0
  28. set barborder 0
  29. set barpadding 0 0
  30. set fgcolor white
  31. set bgcolor black
  32. set font JuliaMono
  33. #-----------------------------------------------------------------------------
  34. # Frame actions
  35. #-----------------------------------------------------------------------------
  36. # Create and remove frames
  37. topbind M-s hsplit
  38. topbind M-S vsplit
  39. topbind M-d remove
  40. # Frame movement
  41. topbind M-l focusright
  42. topbind M-h focusleft
  43. topbind M-k focusup
  44. topbind M-j focusdown
  45. topbind M-Tab next
  46. # Frame swapping
  47. topbind M-L exchangeright
  48. topbind M-H exchangeleft
  49. topbind M-K exchangeup
  50. topbind M-J exchangedown
  51. #-----------------------------------------------------------------------------
  52. # Program actions
  53. #-----------------------------------------------------------------------------
  54. # Stop program
  55. topbind M-D delete
  56. # More violent approach to stop programs
  57. topbind M-Q kill
  58. # Launch firefox or firefox-bin (Gentoo specific)
  59. topbind M-f exec firefox || firefox-bin
  60. # Modify volume using ratvol
  61. topbind M-minus exec ratvol -p -t 1 -g c
  62. topbind M-plus exec ratvol -p -t 1 -g c +
  63. # Toggles the touchpad state (depends on the touchpad function in .bash_profile)
  64. topbind M-T exec touchpad -t
  65. # Hibernate using logingctl
  66. bind C-H exec loginctl hibernate