]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - tmux.conf.in
bin/battery.pl,setup.sh: Support different battery devices names.
[config/dotfiles.git] / tmux.conf.in
index 34cf1f124f8d8bcbbbb706604387bcf17debe581..ea82d371f34f5e081f630fa092044f3af13955f9 100644 (file)
@@ -5,7 +5,7 @@
 # - To swap/renumber windows (like GNU screen's :number command) use
 #   :swap-window -t <number>.
 
-# 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
@@ -67,7 +67,9 @@ set-option -g status-bg colour12
 set-option -g status-left ""
 # Current load average and hostname (#H) on the right.
 set-option -g status-right "#(uptime | sed 's/^.*load averages*: //; s/,//g') \
-                            #H"
+                            #H \
+                            #[] #(~/.shell/bin/battery.pl -t BATTERY)\
+                            "
 
 # Format for windows in the window list in the status line. #I window index,
 # #W window number, #F window flags.
@@ -108,7 +110,7 @@ bind-key C-t display-message
 
 # Run urlview on the current screen content. Very useful to follow links.
 # Thanks to Arch wiki (https://wiki.archlinux.org/index.php/Tmux) for the
-# basic idea.
+# basic idea how to enable this in tmux.
 bind-key C-b capture-pane \; \
              save-buffer ~/.tmp/tmux-urlview \; \
              new-window "$SHELL -c 'urlview < ~/.tmp/tmux-urlview'"