Advertisement
BSDG33KCLUB

my .twmrc + lots of key bindings

Feb 22nd, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.05 KB | None | 0 0
  1. NoGrabServer
  2. RestartPreviousState
  3. DecorateTransients
  4. TitleFont "-*-terminus-medium-r-normal-*-12-*-*-*-c-*-*-1"
  5. ResizeFont "-*-terminus-medium-r-normal-*-12-*-*-*-c-*-*-1"
  6. MenuFont "-*-terminus-medium-r-normal-*-12-*-*-*-c-*-*-1"
  7. IconFont "-*-terminus-medium-r-normal-*-12-*-*-*-c-*-*-1"
  8. IconManagerFont "-*-terminus-medium-r-normal-*-12-*-*-*-c-*-*-1"
  9. #TitleFont "-*-tamsyn-medium-r-normal-*-*-87-*-*-*-*-*-*"
  10. #ResizeFont "-*-tamsyn-medium-r-normal-*-*-87-*-*-*-*-*-*"
  11. #MenuFont "-*-tamsyn-medium-r-normal-*-*-87-*-*-*-*-*-*"
  12. #IconFont "-*-tamsyn-medium-r-normal-*-*-87-*-*-*-*-*-*"
  13. #IconManagerFont "-*-tamsyn-medium-r-normal-*-*-87-*-*-*-*-*-*"
  14. # reduce titlebar space
  15. #SqueezeTitle
  16. ShowIconManager
  17. SortIconManager
  18. ForceIcons
  19. ClientBorderWidth 1
  20. IconDirectory "/usr/include/X11/bitmaps"
  21.  
  22.  
  23. Color
  24. {
  25. BorderColor "#9a875f"
  26. BorderTileForeground "#bea492"
  27. BorderTileBackground "#181512"
  28. DefaultBackground "#181512"
  29. DefaultForeground "#bea492"
  30. TitleBackground "#181512"
  31. TitleForeground "#9a875f"
  32. MenuBackground "#181512"
  33. MenuForeground "#9a875f"
  34. MenuBorderColor "#504339"
  35. MenuTitleBackground "#9a875f"
  36. MenuTitleForeground "#181512"
  37. IconBackground "#181512"
  38. IconForeground "#bea492"
  39. IconBorderColor "#504339"
  40. IconManagerBackground "#181512"
  41. IconManagerForeground "#9a875f"
  42. }
  43. # define key bindings
  44. "Tab" = m4 : all : f.circleup
  45. "w" = m4 : all : f.exec "firefox &"
  46. "f" = m4 : all : f.exec "spacefm &"
  47. "e" = m4 : all : f.exec "geany &"
  48. "l" = m4 : all : f.exec "lxappearance &"
  49. "n" = m4 : all : f.exec "nitrogen &"
  50. "z" = m4 : all : f.exec "urxvt -e tmux &"
  51. "t" = m4 : all : f.exec "urxvt -e /bin/bash &"
  52. "c" = m4 : all : f.exec "urxvt -e mc &"
  53. "g" = m4 : all : f.exec "gimp"
  54. "v" = m4 : all : f.exec "urxvt -e vim"
  55. "i" = m4 : all : f.exec "urxvt -e weechat &"
  56. "a" = m4 : all : f.exec "file-roller &"
  57. "d" = m4 : all : f.delete
  58. "x" = m4 : all : f.iconify
  59. "p" = m4 : all : f.exec "dmenu_run &"
  60. "m" = m4 : all : f.fullzoom
  61. "b" = m4 : all : f.exec "qbittorrent &"
  62. "r" = m4 : all : f.restart
  63. "q" = m4 : all : f.quit
  64.  
  65. #
  66. # Define some useful functions for motion-based actions.
  67. #
  68. MoveDelta 3
  69. Function "move-or-lower" { f.move f.deltastop f.lower }
  70. Function "move-or-raise" { f.move f.deltastop f.raise }
  71. Function "move-or-iconify" { f.move f.deltastop f.iconify }
  72. m
  73. #
  74. # Set some useful bindings. Sort of uwm-ish, sort of simple-button-ish
  75. #
  76. Button1 = : root : f.menu "System"
  77. Button3 = : root : f.menu "Applications"
  78.  
  79. Button1 = m : window|icon : f.function "move-or-lower"
  80. Button2 = c m : window|icon : f.iconify
  81. Button3 = m : window|icon : f.function "move-or-raise"
  82.  
  83. Button1 = : title : f.function "move-or-raise"
  84. Button2 = : title : f.raiselower
  85.  
  86. Button1 = : icon : f.function "move-or-iconify"
  87. Button2 = : icon : f.iconify
  88.  
  89. Button1 = : iconmgr : f.iconify
  90. Button2 = : iconmgr : f.iconify
  91.  
  92. Button1 = mod1 : window : f.move
  93. Button2 = mod1 : window : f.resize
  94.  
  95. NoTitle
  96. {
  97. "TWM Icon Manager"
  98. "Conky"
  99. "astime"
  100. }
  101.  
  102. #
  103. # And a menus with the usual things
  104. #
  105. menu "System"
  106. {
  107. "System" f.title
  108. "Window ops" f.menu "Window Ops"
  109. "Windows" f.menu "TwmWindows"
  110. "" f.nop
  111. "Refresh" f.refresh
  112. "Unfocus" f.unfocus
  113. "Show Icon Box" f.showiconmgr
  114. "Hide Icon Box" f.hideiconmgr
  115. "Version" f.version
  116. "" f.nop
  117. "Restart" f.restart
  118. "Logout" f.quit
  119. }
  120.  
  121. menu "Window Ops"
  122. {
  123. "Window Ops" f.title
  124. "Lower" f.lower
  125. "Raise" f.raise
  126. "Resize" f.resize
  127. "Move" f.move
  128. "Deiconify" f.deiconify
  129. "Iconify" f.iconify
  130. "Identify" f.identify
  131. "Focus" f.focus
  132. "Kill" f.destroy
  133. }
  134.  
  135. menu "Title Menu"
  136. {
  137. "Lower" f.lower
  138. "Raise" f.raise
  139. "Resize" f.resize
  140. "Move" f.move
  141. "Iconify" f.iconify
  142. "Identify" f.identify
  143. "Focus" f.focus
  144. "Kill" f.destroy
  145. "Dismiss" f.delete
  146. }
  147.  
  148.  
  149.  
  150. menu "Applications"
  151. {
  152. "Applications" f.title
  153. "urxvt" !"urxvt -e /bin/bash &"
  154. "chromium" !"chromium &"
  155. "edit" !"geany &"
  156. "vim" !"gvim &"
  157. "tmux" !"urxvt -e tmux &"
  158. "nitrogen" !"nitrogen &"
  159. "lxappearance" !"lxappearance &"
  160. "gimp" !"gimp &"
  161. "file-roller" !"file-roller &"
  162. "spacefm" !"pcmanfm &"
  163. "gmrun" !"gmrun &"
  164. }
  165.  
  166. Icons {
  167. "Navigator" "xlogo32"
  168. "urxvt" "terminal"
  169. "geany" "xlogo32"
  170. "pcmanfm" "xlogo32"
  171. "spacefm" "xlogo32"
  172. "file-roller" "xlogo32"
  173. "gvim" "xlogo32"
  174. "nitrogen" "xlogo32"
  175. "lxappearance" "xlogo32"
  176. "qbittorrent" "xlogo32"
  177. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement