Proper urxvt resizing.
[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 # PuTTY needs help to set bold colours.
43 termcapinfo putty-256color 'C8'
44 # How to resize the window.
45 termcapinfo putty*|rxvt-unicode|xterm-* 'WS=\E[8;%d;%dt'
46 # How to set the hardstatus line (ie title bar).  Even though we don't use it.
47 termcapinfo xterm* 'ts=\E]0;:fs=\007:ds=\E]0;\007'
48 # Allow PgUp/PgDn to work correctly.
49 termcapinfo * 'ti@:te@'
50 # Force hardstatus off so we can have the line on the screen and toggle it.
51 termcapinfo * 'hs@'
52 # Support 256 colours with background clear erase.
53 term screen-256color-bce
54 # Turn on background clear erase.
55 defbce on
56
57 ################################################################################
58 # Caption settings.
59 ################################################################################
60 # Display hardstatus on the bottom of the screen instead of in the title bar.
61 hardstatus off
62 # The string is white on blue text showing: hostname, current window, date.
63 hardstatus string "%{= BW}%H [screen %n: %t]%<%=%Y-%m-%d %0c:%s"
64 # Show a caption bar for every window even if there are no splits.
65 caption always
66 # Format a caption string depending on whether it is related to the active 
67 # window or not (%?%Fxxx%:yyy%? shows xxx if the window is active and yyy 
68 # otherwise).
69 # The caption consists of a white background bar whose foreground colour 
70 # depends on the window status.  Active windows are in blue; inactive in black.
71 # The current window's settings are highlighted in reverse video with square
72 # brackets.
73 caption string "%?%F%{= wb}%:%{= wk}%?%-Lw%50>%?%F%{+r}%:%{= Kw}%?[%n%f %t]%{-}%+Lw%< %="
74 # %?%F%{= wb}%:%{= wk}%?
75 # Show everything in blue on white if the window is active or black on white
76 # if the window is inactive.
77 #
78 # %-Lw%50>
79 # Left-aligned window list up to but not including the active window.
80 #
81 # %?%F%{+r}%:%{= Kw}%?[%n%f%t]%{-}
82 # Show name, flags and title in bold reverse if the window is active.  
83 # Otherwise show them in white on high intensity black, which turns out grey.
84 # Afterwards pop the colour stack so the following information is as before.
85 #
86 # %+Lw
87 # All remaining window names.
88 #
89 # %< %=
90 # Truncate here, hack in a space to force the reverse video to flip off then 
91 # pad remaining text.