Saltycrane logo

SaltyCrane Blog

Notes on Python, Django, and web development on Ubuntu Linux

    

.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

Post a comment

Required
Required, but not displayed
Optional

Format using Markdown. (No HTML.)
  • Code blocks: prefix each line by at least 4 spaces or 1 tab (and a blank line before and after)
  • Code span: surround with backticks
  • Blockquotes: prefix lines to be quoted with >
  • Links: <URL>
  • Links w/ description: [description](URL)
Created with Django | Hosted by Linode