From f1148f49f7bfe1f80a1c11f118ee79512e881556 Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 13 Dec 2021 10:47:28 -0500 Subject: [PATCH] add battery display for tmux --- bash_scripts/get_bat.sh | 4 ++++ dot/.tmux.conf | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100755 bash_scripts/get_bat.sh diff --git a/bash_scripts/get_bat.sh b/bash_scripts/get_bat.sh new file mode 100755 index 0000000..0b73388 --- /dev/null +++ b/bash_scripts/get_bat.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env sh + +acpi -b | cut -d ',' -f 2 + diff --git a/dot/.tmux.conf b/dot/.tmux.conf index 2294126..8bea072 100644 --- a/dot/.tmux.conf +++ b/dot/.tmux.conf @@ -28,7 +28,7 @@ set -g status-position bottom set -g status-justify left set -g status-style fg=colour137,bg=colour241,dim 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-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 # 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 -v -c "#{pane_current_path}"