-
Notifications
You must be signed in to change notification settings - Fork 1
/
.screenrc
73 lines (67 loc) · 3.3 KB
/
.screenrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
sessionname main
defscrollback 5000
altscreen on
startup_message off
autodetach on
hardstatus on
hardstatus alwayslastline
hardstatus string "%{= .w}%-Lw%{+b .5}[%{-b .w}%n %t%{+b .5}]%{-b .w}%+Lw %-= %{+b .5}[%{-b .w}%c%{+b k5}] [%{-b .w}%l%{+b .5}]"
#screen -t Python 1 python
#screen -t Scratch 0 bash
escape ^Ww
# http://blog.eater.org/2008/12/new-screenrc-hardstatus-string.html
# %{= ky} set color to yellow on black.
# %{= yk} set color to black on yellow.
# %{=r} reverse the color attrs
# %-Lw all window #s, titles, and flags before the current window.
# %n %t current window number and title.
# %+Lw all windows #s, titles, and flags after the current window.
# %-= pad remaining spaces.
# %M%d month and day, like MmmDD.
# %c current time, like HH:MM.
# %H hostname
# http://www.debian-administration.org/articles/560
# http://www.calmar.ws/dotfiles/screenrc.html
# ------------------------------------------------------------------------------
# caption description:
# ------------------------------------------------------------------------------
#
# caption always "%?%F%{-b bc}%:%{-b bb}%?%C|%D|%M %d|%H%?%F%{+u wb}%? %L=%-Lw%45>%{+b by}%n%f* %t%{-}%+Lw%-0<"
#
# Anything I don't describe is treated literally.
#
# %? - Start of a conditional statement.
# %F - Use this part of the statement if the window has focus (i.e. it
# is the only window or the currently active one).
# %{-b bc} - Turn off bold, blue foreground, cyan background.
# %: - else
# %{-b bb} - Turn off bold, blue foreground, blue background (this obscures
# the text on non-focused windows and just gives a blue line).
# %? - End conditional statement.
# %C - time (hh:mm, leading space) in 12 hour format
# %D - Three-letter day-of-week appreviation
# %M - Three-letter month appreviation
# %d - Day of the month
# %H - hostname
# %? - Start of conditional statement.
# %F - Use this part of the statement if the window has focus.
# %{+u wb} - underlined, white foreground, blue background
# %? - End conditional (if not focused, text remaind blue on blue).
# %L= - truncation/padding point. With the 'L' qualifier, basically
# just acts as a reference point. Further truncation/padding is
# done relative to here, not the beginning of the string
# %-Lw - window list up to but not including the current window (-),
# show window flags (L)
# %45> - truncation/padding marker; place this point about 45% of the
# way into the display area (45)
# %{+b by} - add bold (still underlined from before), blue foreground,
# yellow background
# %n - number of the current window
# %f - flags for current window
# %t - title of current window
# %{-} - undo last color change (so now we're back to underlined white
# on blue) (technically, this is a pop; a second invocation
# would drop things back to unadorned blue on cyan)
# %+Lw - window list from the next window on (-), show window flags (L)
# %-0< - truncation/padding point. Place this point zero spaces (0)
# from the right margin (-).