summaryrefslogtreecommitdiff
path: root/.screenrc
diff options
context:
space:
mode:
authorSean Whitton <spw+git@sdf.org>2014-05-01 13:05:54 +0000
committerSean Whitton <spw+git@sdf.org>2014-05-01 13:05:54 +0000
commitf1433b38fa5be8019bdc855f44655fb95f8f633b (patch)
treee20915003ee111af62ec04b35f143b9f2e26ef45 /.screenrc
parent9c9df5de5cd2bc7402db4a19a296bcdb6639401a (diff)
downloaddotfiles-f1433b38fa5be8019bdc855f44655fb95f8f633b.tar.gz
Many cleaned up config files
Diffstat (limited to '.screenrc')
-rw-r--r--.screenrc48
1 files changed, 48 insertions, 0 deletions
diff --git a/.screenrc b/.screenrc
new file mode 100644
index 00000000..5022f635
--- /dev/null
+++ b/.screenrc
@@ -0,0 +1,48 @@
+# start in homedir
+chdir
+
+# --- preferences
+
+vbell off
+autodetach on
+startup_message off
+defscrollback 5000
+escape ^z^z
+defnonblock 5
+nonblock 5
+altscreen on
+
+# --- status bar
+
+# from the gentoo wiki, hacked for urxvt with zenburn colours
+hardstatus alwayslastline
+hardstatus string '%{= dg}[ %{G}%H %{g}][%= %{= dw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
+
+# --- terminal settings
+
+# http://frexx.de/xterm-256-notes/
+# Get 256 colours
+# 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'
+# erase background with current bg color
+defbce "on"
+
+term screen-256color
+
+# --- bindings
+
+# bounce back and forth between windows
+bind ^z other
+
+# toggle the status bar
+bind f eval "hardstatus alwaysignore"
+bind F eval "hardstatus alwayslastline"
+
+# bind an rtorrent helper macro
+# bindkey rather than bind makes C-z not required but then can't type capital R
+register s ^I^Xd.set_directory=~/local/rt/complete^M^S^N
+bind R process s