-# Screen configuration file.
+# GNU screen configuration file.
#
# Features which are only available in (very) recent screen releases or in
# current Git are marked with "(GIT)" so they can be removed by the setup
#
# (BATTERY) is only used on laptops, (ROOT) only if running as root.
-# Copyright (C) 2011-2012 Simon Ruderich
+# Copyright (C) 2011-2013 Simon Ruderich
#
# This file is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
vbell on
# Increase the scrollback buffer.
-defscrollback 10000
+defscrollback 50000
# Ignore case when searching.
ignorecase on
-# I prefer zsh as my shell.
+# I prefer zsh as my shell. GNU screen displays a warning if the shell isn't
+# available.
shell zsh
+# Don't "login" windows (= add them to the utmp database) by default. Not
+# useful for me and the "$" flag clutters the window flags (displayed with
+# %Lw).
+deflogin off
+
# TERMINAL
caption always "$s"
unsetenv s
# Always display the status line with open windows and the hostname.
-setenv s "$s%w" # - number and names of windows
+setenv s "$s%Lw" # - number and names of windows, L displays window flags
setenv s "$s%=" # - right align the following text
setenv s "$s%l" # - load average
setenv s "$s " # - space
# Bindings for fast switching to windows 10 to 19. Thanks to skizzhg in
# #screen on Freenode (2010-10-31 21:49 CET) for the suggestion.
+bind ; command -c window
bind -c window 0 select 10
bind -c window 1 select 11
bind -c window 2 select 12
bind -c window 7 select 17
bind -c window 8 select 18
bind -c window 9 select 19
-bind ; command -c window
+# And bindings for windows 20 to 29 with e.g. ;;1. Thanks to Kays in #irssi on
+# Freenode (2012-10-18 16:25 CEST) for the suggestion to use ;;.
+bind -c window ; command -c window2
+bind -c window2 0 select 20
+bind -c window2 1 select 21
+bind -c window2 2 select 22
+bind -c window2 3 select 23
+bind -c window2 4 select 24
+bind -c window2 5 select 25
+bind -c window2 6 select 26
+bind -c window2 7 select 27
+bind -c window2 8 select 28
+bind -c window2 9 select 29
# Run urlview on current screen content. Very useful to follow links. Make
# sure hardcopy_append is off before using this command.
-bind ^B eval "hardcopy $HOME/.screen-urlview" "screen urlview $HOME/.screen-urlview"
+bind ^B eval "hardcopy $HOME/.tmp/screen-urlview" "screen urlview $HOME/.tmp/screen-urlview"