You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

490 lines
16 KiB

  1. # ===============================================================
  2. # Screen config file by Andreas Schneider <mail at cynapses.org>
  3. #
  4. # written by Sven Guckes <setup-screenrc at guckes.net> and
  5. # Andreas Schneider <mail at cynapses.org>
  6. #
  7. # Last Change: 2008-02-23 22:29:55
  8. #
  9. # Get the latest version from:
  10. # http://www.cynapses.org/tmp/setup/
  11. #
  12. # ===============================================================
  13. # ENVIRONMENT
  14. # ===============================================================
  15. # The DISPLAY variable tells programs which display to use.
  16. # This mainly affects programs running on the X server.
  17. # However, when I use screen then I am usually using a terminal -
  18. # and programs do not need to contact the X server.
  19. # This results in programs waiting for some timeout when
  20. # they start up - and this just keeps getting in my way.
  21. # I therefore unset the DISPLAY variable with this command:
  22. ## unsetenv DISPLAY
  23. # Text Tools rule! :-)
  24. #
  25. # ===============================================================
  26. # ESCAPE - the COMMAND CHARACTER
  27. # ===============================================================
  28. # escape ^aa # default
  29. # escape ^pp # suggested binding for emacs users
  30. #
  31. # FAQ: Did you happen to forget the escape character
  32. # for *the* current session?
  33. # A: You can reset the escape character from the shell
  34. # by giving the current session the following command:
  35. # screen -X escape ^Aa
  36. #
  37. # i suggest you prepare your shell with the following aliases:
  38. # alias Ea='screen -X escape a'
  39. # alias Eo='screen -X escape o'
  40. # alias Ep='screen -X escape p'
  41. # alias Ex='screen -X escape x'
  42. #
  43. # ===============================================================
  44. # STARTUP of programs in an extra window:
  45. # ===============================================================
  46. # Uncomment one/some following lines to automatically let
  47. # SCREEN start some programs in the given window numbers:
  48. # screen -t MAIL 0 muttng
  49. # screen -t EDIT 1 vim
  50. # screen -t GOOGLE 2 links http://www.google.com
  51. # screen -t NEWS 3 slrn
  52. # screen -t WWW 4 links http://www.guckes.net/
  53. #
  54. # ===============================================================
  55. # VARIABLES - Boolean values (on/off)
  56. # ===============================================================
  57. nethack on # default: off
  58. autodetach on # default: on
  59. crlf off # default: off
  60. deflogin off # default: on
  61. # defsilence off # default: off
  62. hardcopy_append on # default: off
  63. # nethack on # default: off
  64. startup_message off # default: on
  65. vbell off # default: ???
  66. altscreen on # default: off
  67. defbce off # default: off
  68. defnonblock on # default: off
  69. #
  70. # ===============================================================
  71. # TERMCAP and TERMINFO
  72. # ===============================================================
  73. #
  74. # What TERM do you run?
  75. term "screen-256color"
  76. #
  77. # terminfo and termcap for nice 256 color terminal
  78. # allow bold colors - necessary for some reason
  79. attrcolor b ".I"
  80. # tell screen how to set colors. AB = background, AF=foreground
  81. termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
  82. termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
  83. #
  84. # ===============================================================
  85. # VARIABLES - Number values
  86. # ===============================================================
  87. #
  88. defscrollback 1000 # default: 100
  89. # msgminwait 3 # default: 1
  90. silencewait 15 # default: 30
  91. #
  92. # ===============================================================
  93. # VARIABLES - Paths and Files (esp. programs)
  94. # ===============================================================
  95. #
  96. # bufferfile: The file to use for commands
  97. # "readbuf" ('<') and "writebuf" ('>'):
  98. # bufferfile $HOME/.screen_exchange
  99. #
  100. # hardcopydir: The directory which contains all hardcopies.
  101. # hardcopydir ~/.hardcopy
  102. # hardcopydir ~/.screen
  103. #
  104. # shell: Default process started in screen's windows.
  105. # Makes it possible to use a different shell inside screen
  106. # than is set as the default login shell. Halleluja! :-)
  107. shell -$SHELL
  108. #
  109. # most users will probably use the "bash" as the default shell:
  110. # shell /bin/bash
  111. # shell /bin/zsh
  112. # shell /bin/ksh
  113. # shell /bin/tcsh
  114. # for an overview to shells see http://georg.f-451.net/shells/
  115. #
  116. # ===============================================================
  117. # VARIABLES - Strings
  118. # ===============================================================
  119. #
  120. # some notes on COLOR before explaining its use in
  121. # the commands caption, hardstatus, and sorendition.
  122. #
  123. # COLOR: colors codes are combinations of
  124. # [attribute modifier] [color description],
  125. # eg "%{ambf}" where
  126. # a=attribute, m=modifier, and
  127. # b=background, f=foreground.
  128. # the manual talks of "attribute/color modifiers".
  129. # see the manual, section "STRING ESCAPES".
  130. #
  131. # Color table:
  132. # 0 Black . leave color unchanged
  133. # 1 Red b blue
  134. # 2 Green c cyan
  135. # 3 Brown / yellow d default color
  136. # 4 Blue g green b bold
  137. # 5 Purple k blacK B blinking
  138. # 6 Cyan m magenta d dim
  139. # 7 White r red r reverse
  140. # 8 unused/illegal w white s standout
  141. # 9 transparent y yellow u underline
  142. #
  143. #
  144. # ===========================================
  145. # CAPTION - shows a "caption" for the window.
  146. # ===========================================
  147. #
  148. # a "caption" is another line which can show information -
  149. # in addition to the hardstatus line.
  150. #
  151. # caption always "%{WB}%?%-Lw%?%{kw}%n*%f %t%?(%u)%?%{WB}%?%+Lw%?%{Wb}"
  152. caption always "%{WB}%?%-Lw%?%{kw}%n*%f %t%?(%u)%?%{WB}%?%+Lw%?%{Wb} %= %{= RY} %H %{BW} %l %{bW} %c %M %d"
  153. # color--------color================color++++++++color
  154. #
  155. # ===============================
  156. # Hardstatus Line and sorendition
  157. # ===============================
  158. #
  159. # current HARDSTATUS [2005-04-12]
  160. # patterns: host, load, time, date.
  161. # the "%=" at the end extends the current color unto the end of the line.
  162. # hardstatus alwayslastline "%{= RY}%H %{BW} %l %{bW} %c %M %d%= www.cynapses.org"
  163. #
  164. #
  165. # =====================================================
  166. # note: the use of ANSI color sequences is deprecated.
  167. # please upgrade to (at least) screen 3.9.13
  168. # so you can make use of the color letters/names!
  169. #
  170. # "sorendition": set the colors for
  171. # the "messages" and "text marking"
  172. # (ie text you mark in copy mode):
  173. #
  174. # sorendition 10 99 # default!
  175. # sorendition 02 40 # green on black
  176. sorendition wb # yellow on blue
  177. # sorendition rw # red on white
  178. # sorendition kG # black on bold green
  179. # =====================================================
  180. #
  181. #
  182. # ============================
  183. # Password
  184. # ============================
  185. # # # password SZnBqiqMtfa6k
  186. # WARNING!! Do NOT remove the comment
  187. # if you don't know what this does!
  188. # read on:
  189. # this commands sets the *internal*
  190. # password for the screen session.
  191. # if this is set then a "lock" command will
  192. # only let you in to the session after you
  193. # enter the user's account password and then
  194. # also the internal password for that session.
  195. # so this gives additional safety.
  196. # but if you forget the internal password
  197. # then you can also forget about the session - ok?!
  198. #
  199. # ===============================================================
  200. # Messages
  201. # ===============================================================
  202. # There are two kinds of messages: "activity" and "bell"
  203. # They are also the names of the commands that set the
  204. # respective messages. In every message there can be "meta
  205. # strings" which are replaced by values. A meta string starts
  206. # with a percent sign and is then followed by one
  207. # of the following letters: aAcCdDfFhHlmMnstuwWyY
  208. # The meta strings usually refer to the current
  209. # date and time or to a window title or number.
  210. # There are also some specials like embedded branches (with %?),
  211. # color codes (with %{xy}) and padding (with %=, %<, %>).
  212. # you can find their description in the manual in section
  213. # "STRING ESCAPES":
  214. # %% percent sign (the escape character itself)
  215. # %a either 'am' or 'pm' - according to the current time
  216. # %A either 'AM' or 'PM' - according to the current time
  217. # %c current time HH:MM in 24h format
  218. # %C current time HH:MM in 12h format
  219. # %d day number - number of current day
  220. # %D Day's name - the weekday name of the current day
  221. # %f flags of the window
  222. # %F sets %? to true if the window has the focus
  223. # %h hardstatus of the window
  224. # %H hostname of the system
  225. # %l current load of the system
  226. # %m month number
  227. # %M month name
  228. # %n window number
  229. # %s seconds
  230. # %t window title
  231. # %u all other users on this window
  232. # %w all window numbers and names.
  233. # %-w all window numbers up to the current window
  234. # %+w all window numbers after the current window
  235. # %W all window numbers and names except the current one
  236. # %y last two digits of the year number
  237. # %Y full year number
  238. #
  239. # Older versions of screen used a single '%' character
  240. # to display window titles - but since version 3.7 this is
  241. # obsoleted by '%n' and it will vanish in future releases.
  242. # So please update your screenrc to meet this convention!
  243. #
  244. # ===============================================================
  245. # "~" stands for the "bell" character
  246. #
  247. # activity 'Activity in window %n' # default
  248. #
  249. # use %n to display the window number and %t for its title:
  250. # activity "activity in window #%n title: %t~"
  251. #
  252. # activity "activity in window #%n title: %t~"
  253. #
  254. activity "%C -> %n%f %t activity!"
  255. #
  256. # pass on the "beep" (CTRL-G) by adding a '~':
  257. bell "%C -> %n%f %t bell!~"
  258. #
  259. # pow_detach_msg: Message shown when session
  260. # gets power detached.
  261. pow_detach_msg "BYE"
  262. #
  263. # vbell_msg: Message shown when the
  264. # "virtual bell" rings.
  265. vbell_msg " *beep* "
  266. #
  267. # ==============================================================
  268. # BIND bind - defaults
  269. # ==============================================================
  270. # The "bind" command assign keys to (internal) commands
  271. # SCREEN checks all the keys you type; you type the key
  272. # which is known as the "command character" then SCREEN
  273. # eats this key, too, and checks whether this key is
  274. # "bound" to a command. If so then SCREEN will execute it.
  275. #
  276. # The command "bind" allows you to chose which keys
  277. # will be assigned to the commands.
  278. #
  279. # Some commands are bound to several keys -
  280. # usually to both some letter and its corresponding
  281. # control key combination, eg the command
  282. # "(create) screen" is bound to both 'c' and '^C'.
  283. #
  284. # The following list shows the default bindings:
  285. #
  286. # break ^B b
  287. # clear C
  288. # colon :
  289. # copy ^[ [
  290. # detach ^D d
  291. # digraph ^V
  292. # displays *
  293. # dumptermcap .
  294. # fit F
  295. # flow ^F f
  296. # bind f screen -t FETCH fetchmail -a
  297. # focus ^I
  298. # hardcopy h
  299. # help ?
  300. # history { }
  301. # info i
  302. # kill K k
  303. # lastmsg ^M m
  304. # license ,
  305. # log H
  306. # login L
  307. # meta x
  308. # monitor M
  309. # next ^@ ^N sp n
  310. # number N
  311. # only Q
  312. # other ^X
  313. # pow_break B
  314. # pow_detach D
  315. # prev ^H ^P p ^?
  316. # quit \
  317. # readbuf <
  318. # redisplay ^L l
  319. # remove X
  320. # removebuf =
  321. # reset Z
  322. # screen ^C c
  323. # select " '
  324. # silence _
  325. # split S
  326. # suspend ^Z z
  327. # time ^T t
  328. # title A
  329. # vbell ^G
  330. # version v
  331. # width W
  332. # windows ^W w
  333. # wrap ^R r
  334. # writebuf >
  335. # xoff ^S s
  336. # xon ^Q q
  337. # ^] paste .
  338. # - select -
  339. # 0 select 0
  340. # 1 select 1
  341. # 2 select 2
  342. # 3 select 3
  343. # 4 select 4
  344. # 5 select 5
  345. # 6 select 6
  346. # 7 select 7
  347. # 8 select 8
  348. # 9 select 9
  349. # I login on
  350. # O login off
  351. # ] paste .
  352. #
  353. # the following table shows the default listing:ta cal
  354. #
  355. #
  356. # lowercase letters:
  357. # abcdefghijklmnopqrstuvwxyz
  358. # -bcd-f-hi-klmn-pqrst-vwx-z -> bcdfhiklmnpqrstvwxz
  359. #
  360. # capital letters:
  361. # ABCDEFGHIJKLMNOPQRSTUVWXYZ
  362. # ABCD-F-H--KLMN--Q-S---WX-Z -> ABCDFHKLMNQSWXZ
  363. #
  364. # control + letters:
  365. # ABCDEFGHIJKLMNOPQRSTUVWXYZ
  366. # -BCD-FGHI--LMN-PQRST-VWX-Z[?@ -> BCDFGHILMNPQRSTVWXZ[?@
  367. #
  368. # other keys:
  369. # "'*,.:<=>?[\_{}
  370. # ===============================================================
  371. # Key bindings
  372. # ===============================================================
  373. # Remove some default key bindings by binding
  374. # them to "nothing" (empty right-hand-side):
  375. #
  376. # bind . dumptermcap # default
  377. bind .
  378. # bind ^\ quit # default
  379. bind ^\
  380. # bind \\ quit # default
  381. bind \\
  382. # bind h hardcopy # default
  383. # bind h
  384. # bind ^h ??? # default
  385. # bind ^h
  386. # bind } history # default
  387. # bind }
  388. #
  389. # And here are the default bind commands if you need them:
  390. #
  391. # bind A title
  392. # bind C clear
  393. # bind D pow_detach
  394. # bind F fit
  395. # bind H log
  396. # bind I login on
  397. # bind K kill
  398. # bind L login
  399. # bind M monitor
  400. # bind N number
  401. # bind O login off
  402. # bind Q only
  403. # bind S split
  404. # bind W width
  405. # bind X remove
  406. # bind Z reset
  407. #
  408. # ==============================================================
  409. # BIND and the Services:
  410. # ==============================================================
  411. # I am using the uppercase letters to start programs/services:
  412. #
  413. # the idea:
  414. # bind <key> <command>
  415. # this binds the key to start a windows with <command> inside.
  416. #
  417. # bind B # unbound by default
  418. bind B screen -t bashfaq 4 links http://wooledge.org/mywiki/BashFaq
  419. #
  420. # DICT - Dictionary English<->German
  421. bind D screen -t dict 4 links dict.tu-chemnitz.de
  422. #
  423. # MUTT - Email User Agent
  424. # bind E # unbound by default
  425. bind E screen -t mail 0 muttng
  426. #
  427. # GOOGLE - Web Search Engine
  428. # bind G # unbound by default
  429. bind G screen -t google 0 links http://www.google.com/
  430. #
  431. # HEISE - IT NewsTicker
  432. # bind H log # default!
  433. bind H screen -t heise 0 links http://www.heise.de/newsticker/
  434. #
  435. bind M screen -t milliways 0 ssh milliways.cynapses.org
  436. #
  437. # Paste - use 'P' instead of ']':
  438. # bind P # unbound by default
  439. bind P paste .
  440. #
  441. # bind R # unbound by default
  442. bind R screen -t root 0 su -
  443. # bind R screen -t root 0 sudo su -
  444. #
  445. # bind V # unbound by default
  446. bind V screen -t vim 1 vim -X
  447. #
  448. bind Y stuff http://www.cynapses.org/
  449. #
  450. # ===============================================================
  451. # BINDKEY:
  452. # ===============================================================
  453. #
  454. # Make shift-PgUp and shift-PgDn work like they do in xterm.
  455. # (Note that this requires xterm to be configured to pass those
  456. # keys through, and not try to act on them itself.)
  457. bindkey "^[[5;2~" eval "copy" "stuff ^u"
  458. bindkey -m "^[[5;2~" stuff ^u
  459. bindkey -m "^[[6;2~" stuff ^d
  460. #
  461. # NumPad keybindings:
  462. # ^[Oo / resize =
  463. # ^[Oj * resize max
  464. # ^[Om - resize -2
  465. # ^[Ok + resize +2
  466. # ^[OM Enter
  467. #
  468. # ================================
  469. # At the very end... show the
  470. # current version and say hello :-)
  471. #
  472. # Briefly show the version number of this starting
  473. # screen session - but only for *one* second:
  474. msgwait 1
  475. version
  476. # change back to showing messages
  477. # for duration of two seconds:
  478. msgwait 2
  479. #
  480. # Welcome the user:
  481. # echo "welcome to screen :-)"
  482. #
  483. # vim modeline:
  484. # Tell Vim to automatically set some options
  485. # when you load this file into a buffer.
  486. # et = expandtab: expand tabs to spaces
  487. # ts=8 = tasbstop=8: use a "tabstop" of '8'
  488. # nowrap : do not wrap lines which are longer
  489. # than the line length on the terminal.
  490. # vim: set ts=8 et nowrap: THPXRF EOF