SaltyCrane Blog — Notes on JavaScript and web development

.screenrc and .Xdefaults (for rxvt)

Use SHIFT+PGUP and SHIFT+PGDOWN to scroll in rxvt. Here are my .Xdefaults and .screenrc config files. A lot of the .screenrc stuff is from Mark Pilgrim. I don't use his "nowplaying" script, but the caption seems to still work.
 
! ~/.Xdefaults
Rxvt*background: #000033
Rxvt*foreground: #ffffcc
Rxvt*font: 14
Rxvt*geometry: 80x40
Rxvt*jumpScroll: True
Rxvt*scrollBar: False
Rxvt*scrollTtyOutput: False
Rxvt*scrollTtyKeypress: True
 
# ~/.screenrc
shell $SHELL
 
# scrollback
defscrollback 5000
 
# Window numbering starts at 1
bind c screen 1
bind 0 select 10
screen 1
 
# Set the caption on the bottom line:
# window-list <nowplaying> <mm/dd/yy> <HH:MM>am/pm
# from http://diveintomark.org/public/2007/03/screenrc
caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= %1` %m/%d/%y %C:%s%a"
 
# use backtick for prefix key instead of Ctrl-A
escape ``
 
# use regular audible bell
vbell off
 
# skip intro
startup_message off
 
# detach on disconnect
autodetach on

Comments