Guest User

Untitled

a guest
Sep 25th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.54 KB | None | 0 0
  1. THIS ASSUMES YOU RUN DEBIAN (or ubuntu, mint) AND ARE NOT A SUCKA MC
  2.  
  3. ### XDM
  4. `sudo aptitude install xdm`
  5. `sudo echo '/usr/bin/xdm' > /etc/X11/default-display-manager`
  6.  
  7. ### spectrwm, dmenu
  8. `sudo aptitude install dmenu libxtst-dev`
  9. `git clone git://opensource.conformal.com/spectrwm.git`
  10. `cd spectrwm/linux`
  11. `make && sudo make install`
  12.  
  13. ### Tell XDM to start specrtwm:
  14. * Edit `~/.Xsession`:
  15.  
  16. ```
  17. exec i3status | dzen2 -fn -*-terminus-medium-*-*-*-*-*-*-*-*-*-*-* &
  18. exec uxterm &
  19. exec /usr/local/bin/spectrwm
  20. ```
  21.  
  22. ### /etc/spectrwm.conf
  23.  
  24. ```
  25. # colors for focussed and unfocussed window borders
  26. color_focus = blue
  27. color_unfocus = rgb:88/88/88
  28.  
  29. # bar settings
  30. # (bar is handled by dzen2, not spectrwm)
  31. bar_enabled = 0
  32. region = screen[1]:1024x754+0+14
  33.  
  34. # mod key, (windows key is Mod4) (apple key on OSX is Mod2
  35. modkey = Mod4
  36.  
  37. quirk[XTerm:xterm] = XTERM_FONTADJ
  38.  
  39. program[menu] = dmenu_run -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_border -sf $bar_color -p SUP? -i
  40. spawn_term = uxterm
  41. program[chrome] = google-chrome
  42. bind[chrome] = MOD+c
  43. program[nautilus] = nautilus
  44. bind[nautilus] = MOD+n
  45. program[xlock] = /usr/bin/xtrlock
  46. bind[xlock] = MOD+Shift+l
  47. ```
  48.  
  49. ### ~/.Xresources
  50.  
  51. ```
  52. ! font menu (ctl-rightclick)
  53. UXTerm.fontMenu.fontdefault.Label: Normal
  54. UXTerm.fontMenu.font1.Label: Illegible
  55. UXTerm.fontMenu.font2.Label: Smallest
  56. UXTerm.fontMenu.font3.Label: Small
  57. UXTerm.fontMenu.font4.Label: Large
  58. UXTerm.fontMenu.font5.Label: Huge
  59. UXTerm.fontMenu.font6.Label: Bold
  60.  
  61. ! stop eating ALT-
  62. UXTerm*eightBitInput: false
  63.  
  64. ! truetype plz
  65. UXTerm.vt100.renderFont: true
  66. UXTerm*faceName: Terminus
  67. UXTerm*faceSize: 8
  68.  
  69. ! does this do anything? dunno
  70. Xft.antialias: true
  71. Xft.autohint: false
  72. Xft.hinting: true
  73. Xft.hintstyle: hintfull
  74. Xft.rgba: rgb
  75. Xft.dpi: 96
  76. Xft.lcdfilter: lcddefault
  77. Xft.embolden: false
  78. Xft.render: true
  79.  
  80. ! bitmap fonts
  81. UXTerm.vt100.utf8Fonts.font: -efont-fixed-medium-r-normal--14-*-*-*-c-*-iso10646-1
  82. UXTerm.vt100.utf8Fonts.font1: nil2
  83. UXTerm.vt100.utf8Fonts.font2: -efont-fixed-medium-r-normal--10-*-*-*-c-*-iso10646-1
  84. UXTerm.vt100.utf8Fonts.font3: -efont-fixed-medium-r-normal--12-*-*-*-c-*-iso10646-1
  85. UXTerm.vt100.utf8Fonts.font4: -efont-fixed-medium-r-normal--16-*-*-*-c-*-iso10646-1
  86. UXTerm.vt100.utf8Fonts.font5: -efont-fixed-medium-r-normal--24-*-*-*-c-*-iso10646-1
  87. UXTerm.vt100.utf8Fonts.font6: -efont-fixed-bold-r-normal--16-*-*-*-c-*-iso10646-1
  88. UXTerm.vt100.utf8Fonts.boldFont: -efont-fixed-bold-r-normal--14-*-*-*-c-*-iso10646-1
  89.  
  90. ! word selection
  91. UXTerm*charClass: 33:48,35:48,37:48,43:48,45-47:48,64:48,95:48,126:48,35:48
  92.  
  93. ! termtype
  94. UXTerm*termName: xterm-256color
  95.  
  96. ! fix colors
  97. UXTerm*background: black
  98. UXTerm*foreground: green
  99. UXTerm*color0: rgb:00/00/00
  100. UXTerm*color1: rgb:a8/00/00
  101. UXTerm*color2: rgb:00/a8/00
  102. UXTerm*color3: rgb:a8/54/00
  103. UXTerm*color4: rgb:00/00/a8
  104. UXTerm*color5: rgb:a8/00/a8
  105. UXTerm*color6: rgb:00/a8/a8
  106. UXTerm*color7: rgb:a8/a8/a8
  107. UXTerm*color8: rgb:54/54/54
  108. UXTerm*color9: rgb:fc/54/54
  109. UXTerm*color10: rgb:54/fc/54
  110. UXTerm*color11: rgb:fc/fc/54
  111. UXTerm*color12: rgb:54/54/fc
  112. UXTerm*color13: rgb:fc/54/fc
  113. UXTerm*color14: rgb:54/fc/fc
  114. UXTerm*color15: rgb:fc/fc/fc
  115. UXTerm*boldMode: false
  116. UXTerm*colorBDMode: true
  117. UXTerm*colorBD: rgb:fc/fc/fc
  118.  
  119. ```
  120.  
  121. ### ~/.screenrc
  122. (I didn't make most of this)
  123.  
  124. ```
  125. # Easier than remembering to always run from non-X
  126. unsetenv DISPLAY
  127. # Likewise, for charset
  128. setenv LC_CTYPE en_US.UTF-8
  129.  
  130. # Add stuff to xterm (and cousins) title bars. This is a moderate abuse of the
  131. # hardstatus feature--it just puts the hardstatus stuff into an xterm title
  132. # bar.
  133. termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
  134.  
  135. # erase background with current bg color
  136. defbce "on"
  137.  
  138. #termcapinfo xterm*|Eterm|mlterm 'hs:ts=\E]0;:fs=\007:ds=\E]0;screen\007'
  139. defhstatus "screen  (t) | $USER@H"
  140. hardstatus off
  141.  
  142. # Make screen messages stand out a little more - black on bright green.
  143. sorendition "+b kG"
  144.  
  145. # Variants on Sven's custom messages.
  146. activity "%c activity -> %n%f %t"
  147. bell "%c bell -> %n%f %t^G"
  148. vbell_msg " *beep* "
  149.  
  150. # I know about screen. I don't need to see it every time I start the program.
  151. # (Which is, admittedly, rarely.)
  152. startup_message off
  153. # don't log new screen windows in utmp.
  154. deflogin off
  155. # Never, ever turn this off.
  156. autodetach on
  157. # Just in case it isn't clear...
  158. shell bash
  159. vbell off
  160. verbose on
  161. #escape ^za
  162. # I like a large scrollback
  163. defscrollback 10000
  164. # Run everything in UTF-8.
  165. defutf8 on
  166. # If a window goes unresponsive, don't block the whole session waiting for it.
  167. nonblock on
  168.  
  169. # want alt-arrow to switch windows? you got it.
  170. #bindkey "^[[1;3D" prev
  171. #bindkey "^[[1;3C" next
  172.  
  173. # Use the function keys to switch among windows.
  174. #bindkey -k k1 select 1
  175. #bindkey -k k2 select 2
  176. #bindkey -k k3 select 3
  177. #bindkey -k k4 select 4
  178. #bindkey -k k5 select 5
  179. #bindkey -k k6 select 6
  180. #bindkey -k k7 select 7
  181. #bindkey -k k8 select 8
  182. #bindkey -k k9 select 9
  183. #bindkey -k k; select 10
  184. #bindkey -k F1 select 11
  185. #bindkey -k F2 select 12
  186. #### windows 13-24 are Shift-Fn. May not work in all terminals.
  187. #bindkey -k F3 select 13
  188. #bindkey -k F4 select 14
  189. #bindkey -k F5 select 15
  190. #bindkey -k F6 select 16
  191. #bindkey -k F7 select 17
  192. #bindkey -k F8 select 18
  193. #bindkey -k F9 select 19
  194. #bindkey -k FA select 20
  195. ####### screen only seems to understand up to FA.
  196. #bindkey -k FB select 21
  197. #bindkey -k FC select 22
  198. #bindkey -k FD select 23
  199. #bindkey -k FE select 24
  200.  
  201. # select works on window names, too. This gives me the first window with a
  202. # free shell.
  203. #bind s select zsh
  204.  
  205. # Make shift-PgUp and shift-PgDn work like they do in xterm. (Note that this
  206. # requires xterm to be configured to pass those keys through, and not try to
  207. # act on them itself.)
  208. bindkey "^[[5;2~" eval "copy" "stuff ^u"
  209. bindkey -m "^[[5;2~" stuff ^u
  210. bindkey -m "^[[6;2~" stuff ^d
  211.  
  212. bind c screen 0
  213. #bind 0 select 10
  214.  
  215. # Login toggle is too close to screen redraw. How about explicitly setting
  216. # login state, anyway?
  217. bind 'L'
  218. bind 'I' login on
  219. bind 'O' login off
  220.  
  221. # It's sometimes useful to have a quote key.
  222. bind ^Q mapdefault
  223. bind q mapdefault
  224.  
  225. # And since that leaxes xon unbound, let's remove xoff, too.
  226. bind ^S
  227.  
  228. # Using tab to move around regions gets annoying. These help.
  229. bind ^j focus down
  230. bind ^k focus up
  231. bind ^t focus top
  232. bind ^b focus bottom
  233.  
  234. # More fixes for the IBM 3151. Force the terminal's backspace (^H) to generate
  235. # the required ^?. (This renders ^H unusable for help from the terminal.)
  236. bindkey -k kb stuff "\177"
  237.  
  238. # This lets me use specific commands from screen escape sequences.
  239. multiuser on
  240. aclchg :window: +x select
  241.  
  242. # caption description:
  243. caption always "%{= KW}%?%n -%C|%D|%M %d|%H %?%F%{+u KG}%?%L=%-Lw%45>%{+b wK}%n%f* %t%{-}%+Lw%-0<"
  244. attrcolor b ".I"
  245. ```
  246. test
Add Comment
Please, Sign In to add comment