Browse Source

add battery display for tmux

master
= 5 years ago
parent
commit
f1148f49f7
  1. 4
      bash_scripts/get_bat.sh
  2. 4
      dot/.tmux.conf

4
bash_scripts/get_bat.sh

@ -0,0 +1,4 @@
#!/usr/bin/env sh
acpi -b | cut -d ',' -f 2

4
dot/.tmux.conf

@ -28,7 +28,7 @@ set -g status-position bottom
set -g status-justify left set -g status-justify left
set -g status-style fg=colour137,bg=colour241,dim set -g status-style fg=colour137,bg=colour241,dim
set -g status-left '' set -g status-left ''
set -g status-right '#[fg=colour232,bg=colour241,bold] %a %m/%d #[fg=colour232,bg=colour240,bold] %l:%M %P ' set -g status-right '#[fg=colour232,bg=colour241,bold]B:#(~/bin/get_bat.sh) %a %m/%d #[fg=colour232,bg=colour240,bold] %l:%M %P '
set -g status-right-length 50 set -g status-right-length 50
set -g status-left-length 20 set -g status-left-length 20
@ -86,6 +86,6 @@ bind-key -T copy-mode-vi C-l select-pane -R
#bind-key -T copy-mode-vi C-\ select-pane -l #bind-key -T copy-mode-vi C-\ select-pane -l
# start new splits/windows with "pane_current_path" # start new splits/windows with "pane_current_path"
bind c new-window -c "#{pane_current_path}" #bind c new-window -c "#{pane_current_path}"
bind '%' split-window -h -c "#{pane_current_path}" bind '%' split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}" bind '"' split-window -v -c "#{pane_current_path}"

Loading…
Cancel
Save