# # ~/.screenrc # # Collected by Remco B. Brink # # Contains various tidbits and snippets from a large amount of # screen configurations found on various places on the net. # # ChangeLog: # 20051117 - Added changelog and turned off creation of new # new shell on default. # 20060815 - Turn off autostarting of programs # 20061112 - Added wormulon to the statusbar # # Sets whether screen will automatically detach upon hangup, which # saves all your running programs until they are resumed with a # screen -r command. autodetach on # This affects the copying of text regions with the `C-a ['command. crlf off # Same as the login command except that the default setting for new # windows is changed. deflogin off # If set to "on", screen will append to the "hardcopy.n"files # created by the command "C-a h", otherwise these files are # overwritten each time. Default is `off'. hardcopy_append on # Select whether you want to see the copyright notice during startup. startup_message off # Same as the scrollback command except that the default setting # for new windows is changed. defscrollback 10000 # Define the time that all windows monitored for silence should # wait before displaying a message. silencewait 15 # My Shell - the one and only ;) shell -zsh # This will only work in screen newer than 4.00.x # After 42 seconds inactivity, it starts »cmatrix« # CMatrix - a console screensaver by Chris Allegretta chrisa(at)asty.org # () #idle 420 eval "screen cmatrix -f -o -u 10" "idle 0" # Binds and programs # # Start these programs whenever screen is started #screen -h 0 -t irc 1 irssi #screen -t mail 2 mutt # Bind C-M to starting up a mail client bind M screen -t 'mail' 2 /usr/bin/mutt -y # Shows a scrolling 'Matrix' like screen () bind L screen cmatrix -f -o -u 10 # A fast way to lock the current screen. bind X lockscreen # Make shift-PgUp and shift-PgDn behave like in xterm bindkey "^[[5;2~" eval "copy" "stuff ^b" bindkey -m "^[[5;2~" stuff ^b bindkey -m "^[[6;2~" stuff ^f # Window numbering starts at 1 instead of 0 #bind c screen 1 #bind 0 screen 10 bindkey "^[[C" eval next bindkey "^[[D" eval prev # Change the way screen does highlighting for text marking sorendition u dw sorendition 02 40 # green on black sorendition 10 99 # default #sorendition 02 34 # yellow on blue #sorendition rw # red on white #sorendition kG # black on bold green # Other hardstatus examples: #hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<" # Windowlist with hostname #hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %=[%H]" # Windowlist with load #hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %=[Load: %l]" # Windowlist with clock hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %=[%l] [%c, %d/%m/%y]" # Windowlist with backticks #hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %=[ip: %1`]" #backtick 1 1200 1200 ipadr # Windowlist with hostname, centered tabs and redmarked active windows #hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]' # Windowlist with hostname, centered tabs, redmarked active windows and loadavg #hardstatus string '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}]%{=b C}[ %m/%d %c ]%{W}' # We want bandwidth stats in the statusline, as well as a clock # using Wormulon #backtick 1 0 0 /usr/local/bin/wormulon -i eth0 #hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %=[%{bw}%1`] - [%c, %d/%m/%y]" #hardstatus alwayslastline #hardstatus string '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}]%{=b C}[ %m/%d %c ]%{W}' defbce on defscrollback 5000 defmonitor off shelltitle '$ | zsh' # C-a is magic-beginning-of-line, so we go for C-\\ instead #escape \\\\ # Make sure a single unresponsive window doesn't kill everything nonblock on # Message shown when session gets power detached pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended." # Sets the visual bell setting for this window. vbell off #vbell on #vbell_msg " *beep* " # Pass on the "beep" (CTRL-G) by adding a "~": bell "bell in %n (%t) [%w:%s]~" # Notify us when something happens in the background activity "activity in %n (%t) [%w:%s]~" # Make sure we start our journey in the first window select 0