Detect en_GB.utf8 locale.
[profile.git] / .screenrc
1 # Use Control-P instead of Control-A for stuff.
2 escape ^pp
3
4 # Turn off annoyances.
5 vbell off
6 startup_message off
7
8 # Coloured windowlist.
9 windowlist title "%{= wb}%{+b}%{+r}[%H]%{-r}%{-b} current windows%="
10 windowlist string "%{+ .b}%{+ g}%3n%f%{+ w} %t"
11
12 ################################################################################
13 # Hotkeys.
14 ################################################################################
15 # Up and down like Vim.
16 bind j focus down
17 bind k focus up
18 # Previous and next kinda like Vim.
19 bind h prev
20 bind l next
21 # Digraph.
22 bind ^k digraph
23 # Close the current window.
24 bind q remove
25 # Fit window to screen.
26 bind _ fit
27 # Show window list.
28 bind = windowlist
29 # Don't accidentally send xoff.
30 bind s
31 # Set current window title.
32 bind t title
33 # Show or hide the hardstatus line.
34 bind v hardstatus alwayslastline
35 bind V hardstatus alwaysignore
36
37 ################################################################################
38 # Terminal settings.
39 ################################################################################
40 # How to set the foreground and background colours.
41 termcapinfo putty*|rxvt-unicode|xterm-* 'AB=\E[48;5;%dm:AF=\E[38;5;%dm'
42 # How to resize the window.
43 termcapinfo putty*|rxvt-unicode|xterm-* 'WS=\E[8;%d;%dt'
44 # How to set the hardstatus line (ie title bar).  Even though we don't use it.
45 termcapinfo xterm* 'ts=\E]0;:fs=\007:ds=\E]0;\007'
46 # Allow PgUp/PgDn to work correctly.
47 termcapinfo * 'ti@:te@'
48 # Force hardstatus off so we can have the line on the screen and toggle it.
49 termcapinfo * 'hs@'
50 # Support 256 colours with background clear erase.
51 term screen-256color-bce
52 # Turn on background clear erase.
53 defbce on
54
55 ################################################################################
56 # Caption settings.
57 ################################################################################
58 # Display hardstatus on the bottom of the screen instead of in the title bar.
59 hardstatus off
60 # The string is white on blue text showing: hostname, current window, date.
61 hardstatus string "%{= BW}%H [screen %n: %t]%<%=%Y-%m-%d %0c:%s"
62 # Show a caption bar for every window even if there are no splits.
63 caption always
64 # Format a caption string depending on whether it is related to the active 
65 # window or not (%?%Fxxx%:yyy%? shows xxx if the window is active and yyy 
66 # otherwise).
67 # The caption consists of a white background bar whose foreground colour 
68 # depends on the window status.  Active windows are in blue; inactive in black.
69 # The current window's settings are highlighted in reverse video with square
70 # brackets.
71 caption string "%?%F%{= wb}%:%{= wk}%?%-Lw%50>%{+b}%{+r}[%n%f %t]%{-r}%{-b}%+Lw%< %="
72 # %?%F%{= wb}%:%{= wk}%?
73 # Show everything in blue on white if the window is active or black on white
74 # if the window is inactive.
75 #
76 # %-Lw%50>
77 # Left-aligned window list up to but not including the active window.
78 #
79 # %{+b}%{+r}[%n%f%t]%{-r}%{+b}
80 # Show name, flags and title in bold reverse.
81 #
82 # %+Lw
83 # All remaining window names.
84 #
85 # %< %=
86 # Truncate here, hack in a space to force the reverse video to flip off then 
87 # pad remaining text.