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.

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