From 084bb69c96e3c01a1f9a7ac912608e378776dac8 Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Mon, 24 Feb 2020 18:34:17 -0700 Subject: [PATCH] Added current battery percentage to tmux info-bar --- tmux/tmux.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 84320e2..3389de4 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -12,3 +12,6 @@ set -g default-terminal "tmux-256color" # force utf-8 setw -gq utf8 on + +# show battery life +set -g status-right "#(cat /sys/class/power_supply/BAT0/capacity)% | #[fg=black]%d %b %R"