aboutsummaryrefslogtreecommitdiff
path: root/screenrc
blob: 7ba9987d0081f6340b0e8d96978c49d7395a2f0f (plain) (blame)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #

### Created by Brad Sims <tanfj@yahoo.com> 25/06/2004

### I got tired of .screenrc's on the internet being so
### poorly commented... So being a good GNUbie I took matters
### into my own hands; and wrote this dotfile.

# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #

##    Explanation of hardstatus line    ##

# Ignore the ' marks if you use these examples for yourself

# Note that if you want to use the color brown under konsole
# You actually use bright yellow (%{Y}).

# Note the embeded space after the colon, I feel
#  it just looks nicer with a blank between the
#  text and console edge:
#   '%{=b}%{G} Screens: '
#term screen-256color
#term xterm-256color

# terminfo and termcap for nice 256 color terminal
# allow bold colors - necessary for some reason
attrcolor b ".I"
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
#termcapinfo xterm|xterms|xs|rxvt ti@:te@
# erase background with current bg color
defbce "on"

defutf8 on
vbell off
#vbell_msg '[[[ plonk! ]]]'
#bell_msg '[[[ plonk! ]]]'

# This prints the window listing in blue:
#   '%{b}%w'

# This right-aligns what follows:
#   '%='

# This displays the time (hours and minutes) in 12hr format
# and adds an AM/PM flag, in bold green:
#   '%{G}%C%A'

# This displays the day of the week:
#   '%D'

#This displays the date in Mon/day/year format:
# and again I embeded a space to give me one space
# between the text and console edge:
#  '%M/%d/%Y '

# The resultsing command give you a status line that
#  looks like this:
#   | Screens: 0* bash  <blanks zapped>         5:30PM  Fri, Jun/25/2004 |
#  (The pipes indicate the edges of the xterm/console).

# Green text, time, and date; windows in blue:
#hardstatus alwayslastline "%{=b}%{kG} Screen(s): %{r}%w %=%{kG}%c  %D, %d.%m.%Y "

# Green text(host), time, and date; windows in blue:
# WORKED WITH SCREEN 4:
#hardstatus alwayslastline "%{=b}%{kG} [%{G}%H] %{r}%w %=%{kG}%c %d.%m.%Y "

# Port to screen 5 attempt:
#hardstatus alwayslastline "%{=b2;0}[%{4}%H%{-}] %{7;0}%w %=%{=b2;0}[%{3}%c %d.%m.%Y%{-}]"
hardstatus alwayslastline " %{=b2;0}[%{4}%H%{-}]%{-} %{7;0}%?%-Lw%?%{+9;0}(%{+15;0}%n%f %t%?(%u)%?%{-})%{-} ^H%?%+Lw%?%= %{-} %=%{=b2;0}[%{3}%c %d.%m.%Y%{-}]%{-}%{-}"

# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #

##    Some general options    ##

# Turn off start message:
startup_message off

# Set messages timeout to one second:
msgwait 1

#bind t screen -t top 0 htop
#bind v screen -t vim 1 vim
bind r screen -t rtorrent 2 rtorrent

#screen -t zsh 0 zsh
#screen -t zsh 1 zsh
#use F7 and F8 to cycle trough the windows
bindkey -k k7 prev
bindkey -k k8 next
# Alt-left/right
bindkey ^[[1;3D prev
bindkey ^[[1;3C next

bindkey ^[ö prev
bindkey ^[ä next

# vim:filetype=screen