X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=screenrc.in;h=ae278438876f3cfea8f28ef3761c911de76e5d82;hb=f0217d1f48f76af5f5be9e51f81403c5ff103204;hp=02212fb20ef3472d9b38b27b13bd5ac3daa562c7;hpb=dfdcca5d5a039efd86e00f8c116b5ca7027dd4d0;p=config%2Fdotfiles.git diff --git a/screenrc.in b/screenrc.in index 02212fb..ae27843 100644 --- a/screenrc.in +++ b/screenrc.in @@ -3,7 +3,13 @@ # 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 # script on machines with older versions. +# +# (BATTERY) is only used on laptops, (ROOT) only if running as root. + +# Automatically lock the screen after 10 minutes of inactivity if running as +# root. +idle 600 lockscreen # (ROOT) # Don't display startup message. startup_message off @@ -37,6 +43,10 @@ attrcolor b ".I" # for window borders in split mode). sorendition = Bw +# Display current battery charge if running on a laptop. Redisplay every 3 +# minutes. +backtick 1 180 180 $HOME/.shell/bin/battery.pl -s # (BATTERY) + # Make sure the temporary variable we use is empty. Thanks to # http://gist.github.com/133000 for the idea to use setenv and to TauPan in # #screen on Freenode (2010-03-10 16:11 CET) for reminding me of it and @@ -61,6 +71,8 @@ setenv s "$s%=" # - right align the following text setenv s "$s%l" # - load average setenv s "$s " # - space setenv s "$s%H" # - hostname +setenv s "$s " # - space (BATTERY) +setenv s "$s%1`" # - battery status (BATTERY) hardstatus alwayslastline "$s" unsetenv s