Skip to content

Instantly share code, notes, and snippets.

@coryf
Created December 21, 2016 16:34
Show Gist options
  • Save coryf/9bfaa2646c12559103a247e897f64ce9 to your computer and use it in GitHub Desktop.
Save coryf/9bfaa2646c12559103a247e897f64ce9 to your computer and use it in GitHub Desktop.
tmux battery status
# clone https://github.com/tmux-plugins/tmux-battery to <tmux-battery-path>
# add to .tmux.conf:
set -g status-right "#[fg=yellow]#(date +'%a %d') #[fg=green]#(date +'%I:%M%p')#[fg=white] #[bg=black] #{battery_percentage} #{battery_icon} "
set -g @batt_charged_icon "🔌"
set -g @batt_charging_icon "⚡"
set -g @batt_discharging_icon "🔋"
set -g @batt_attached_icon "⚠️"
run-shell <tmux-battery-path>/battery.tmux
@coryf
Copy link
Author

coryf commented Dec 21, 2016

screen shot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment