]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - screenrc.in
screenrc: Change hardstatus color when in copy mode.
[config/dotfiles.git] / screenrc.in
1 # Screen configuration file.
2 #
3 # Features which are only available in (very) recent screen releases or in
4 # current Git are marked with "(GIT)" so they can be removed by the setup
5 # script on machines with older versions.
6
7
8 # Don't display startup message.
9 startup_message off
10
11 # Use visual bell instead of audible bell.
12 vbell on
13
14 # Increase the scrollback buffer.
15 defscrollback 10000
16
17 # Ignore case when searching.
18 ignorecase on
19
20
21 # TERMINAL
22
23 # Enable 256 color mode.
24 term screen-256color
25 # Allow bold colors in XTerm (not necessary for Rxvt), not sure why this is
26 # necessary. Otherwise normal and bold colors are switched. Thanks to
27 # http://www.frexx.de/xterm-256-notes/.
28 attrcolor b ".I"
29
30
31 # CAPTION AND HARDSTATUS
32
33 # Use white on light blue background for highlighting and text messages (and
34 # for window borders in split mode).
35 sorendition = Bw
36
37 # Make sure the temporary variable we use is empty. Thanks to
38 # http://gist.github.com/133000 for the idea to use setenv and to TauPan in
39 # #screen on Freenode (2010-03-10 16:11) for reminding me of it and searching
40 # it again.
41 unsetenv s
42
43 # Always display the caption.
44 setenv s "$s%{= Bw}" # - white on light blue background, also reset all
45                      #   attributes (necessary so everything is displayed
46                      #   correctly)
47 setenv s "$s%?%P"    # - is copy mode enabled? (GIT)
48 setenv s "$s%{= wB}" #   - if so change colors to light blue on white (GIT)
49 setenv s "$s%?"      # - end if (GIT)
50 setenv s "$s%3n"     # - window number
51 setenv s "$s "       # - space
52 setenv s "$s%t"      # - window name
53 caption always "$s"
54 unsetenv s
55 # Always display the status line with open windows and the hostname.
56 setenv s "$s%w" # - number and names of windows
57 setenv s "$s%=" # - right align the following text
58 setenv s "$s%l" # - load average
59 setenv s "$s "  # - space
60 setenv s "$s%H" # - hostname
61 hardstatus alwayslastline "$s"
62 unsetenv s
63
64
65 # BINDINGS
66
67 # Remove some bindings I don't use to prevent using them accidentally. You
68 # probably don't want to copy this.
69 bind K  # kill
70 bind k  # kill
71 bind \\ # quit
72 bind ^Z # suspend
73 bind z  # suspend
74 bind ^S # xoff
75 bind s  # xoff
76 bind ^Q # xon
77 bind q  # xon
78 bind ^G # visual bell
79 bind D  # power detach
80
81 # Run urlview on current screen content. Very useful to follow links. Make
82 # sure hardcopy_append is off before using this command.
83 bind ^B eval "hardcopy $HOME/.screen-urlview" "screen urlview $HOME/.screen-urlview"