tmux: Show battery and timing information in status line

This commit is contained in:
Sanchayan Maity 2020-10-19 15:25:16 +05:30
parent b96f253235
commit 888a04424f
3 changed files with 21 additions and 0 deletions

3
.gitmodules vendored
View file

@ -16,3 +16,6 @@
[submodule "tmux/.tmux/plugins/tmux-butler"] [submodule "tmux/.tmux/plugins/tmux-butler"]
path = tmux/.tmux/plugins/tmux-butler path = tmux/.tmux/plugins/tmux-butler
url = https://github.com/woodstok/tmux-butler url = https://github.com/woodstok/tmux-butler
[submodule "tmux/.tmux/plugins/tmux-battery"]
path = tmux/.tmux/plugins/tmux-battery
url = https://github.com/tmux-plugins/tmux-battery

View file

@ -103,6 +103,22 @@ set-option -g message-style fg=colour187,bg='#000000'
# Set extrakto clip tool. Default is xclip. # Set extrakto clip tool. Default is xclip.
set -g @extrakto_clip_tool "xsel --input --clipboard" set -g @extrakto_clip_tool "xsel --input --clipboard"
# Battery
set -g @batt_icon_charge_tier8 '🌕'
set -g @batt_icon_charge_tier7 '🌖'
set -g @batt_icon_charge_tier6 '🌖'
set -g @batt_icon_charge_tier5 '🌗'
set -g @batt_icon_charge_tier4 '🌗'
set -g @batt_icon_charge_tier3 '🌘'
set -g @batt_icon_charge_tier2 '🌘'
set -g @batt_icon_charge_tier1 '🌑'
set -g @batt_icon_status_charged '🔋'
set -g @batt_icon_status_charging '⚡'
set -g @batt_icon_status_discharging '👎'
set -g @batt_color_status_primary_charged '#3daee9'
set -g @batt_color_status_primary_charging '#3daee9'
set -g status-right '#{battery_status_bg} #{battery_icon} #{battery_percentage} #{battery_remain} | %a %h-%d %H:%M '
# Plugins # Plugins
run-shell '~/.tmux/plugins/tmux-resurrect/resurrect.tmux' run-shell '~/.tmux/plugins/tmux-resurrect/resurrect.tmux'
run-shell '~/.tmux/plugins/tmux-continuum/continuum.tmux' run-shell '~/.tmux/plugins/tmux-continuum/continuum.tmux'
@ -110,5 +126,6 @@ run-shell '~/.tmux/plugins/tmux-yank/yank.tmux'
run-shell '~/.tmux/plugins/tmux-copycat/copycat.tmux' run-shell '~/.tmux/plugins/tmux-copycat/copycat.tmux'
run-shell '~/.tmux/plugins/tmux-open/open.tmux' run-shell '~/.tmux/plugins/tmux-open/open.tmux'
run-shell '~/.tmux/plugins/tmux-butler/tmux-butler.tmux' run-shell '~/.tmux/plugins/tmux-butler/tmux-butler.tmux'
run-shell '~/.tmux/plugins/tmux-battery/battery.tmux'
set -g @continuum-restore 'on' set -g @continuum-restore 'on'

@ -0,0 +1 @@
Subproject commit f8b8e8451990365e0c98c38c184962e4f83b793b