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.

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