X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=screenrc.in;h=37d61da70fcff39640bcab3ee8a84d53a943f173;hb=fb9ed9fba7a9d6acffa895de0a5ba9fd17514c40;hp=02212fb20ef3472d9b38b27b13bd5ac3daa562c7;hpb=29ffb598eede5a03ac959c4380b134245bd0b533;p=config%2Fdotfiles.git diff --git a/screenrc.in b/screenrc.in index 02212fb..37d61da 100644 --- a/screenrc.in +++ b/screenrc.in @@ -37,6 +37,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 +65,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