From d78eaa6f2ac9285af585245cec1ea2abe9563d19 Mon Sep 17 00:00:00 2001 From: Mitch Tishmack Date: Sun, 31 Dec 2017 13:23:40 -0600 Subject: [PATCH] tmux.org: Testing out a battery meter hidden behind testing-p --- tmux.org | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tmux.org b/tmux.org index 6df2b8d..738286d 100644 --- a/tmux.org +++ b/tmux.org @@ -151,3 +151,20 @@ Only set xclip for x setup. bind C-p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer" bind C-y run "tmux save-buffer - | xclip -i" #+END_SRC + +Testing of battery stuff, defaults in general. + +#+BEGIN_SRC conf :tangle (tangle/file ".tmux.conf" (and (bound-and-true-p tmux-p) (bound-and-true-p testing-p))) + set-option -g status-right-length 21 + set-option -g status-right "#{battery_status_fg}#{battery_remain} #{battery_icon}#[fg=white] %a %H:%M:%S" + set-option -g @batt_charged_icon "✓" + run-shell ~/src/github.com/tmux-plugins/tmux-battery/battery.tmux +#+END_SRC + +And for macos, differ in that the battery charged icon is utf-8 really. TODO: do I need this really? + +#+BEGIN_SRC conf :tangle (tangle/file ".tmux.conf" (and (bound-and-true-p testing-p) (bound-and-true-p tmux-p) (bound-and-true-p macos-p))) + set-option -g status-right-length 20 + set-option -g status-right "#{battery_remain} #{battery_icon} %a %H:%M:%S" + run-shell ~/src/github.com/tmux-plugins/tmux-battery/battery.tmux +#+END_SRC