diff options
| author | Skladnayazebra <skladnayazebra@gmail.com> | 2025-11-06 20:13:39 +0100 |
|---|---|---|
| committer | Skladnayazebra <skladnayazebra@gmail.com> | 2025-11-06 20:13:39 +0100 |
| commit | 03bdf34d32f26c66b93a6212f669b322f10a27f6 (patch) | |
| tree | 52fe5b30dacc267364f6990e6ec0163ba091a05a /tmux/tmux.conf | |
| parent | 8360c48f63000bd0082ddb48b6e1144c02a08389 (diff) | |
Add battery status to tmux status line
Diffstat (limited to 'tmux/tmux.conf')
| -rw-r--r-- | tmux/tmux.conf | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 3f2a585..2267017 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -25,3 +25,5 @@ set-window-option -g window-status-current-format ' #I:#W ' # open pane splits at the same path as current pane bind '"' split-window -v -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" + +set-window-option -g status-right "%H:%M %d-%b-%y #(upower -i /org/freedesktop/UPower/devices/DisplayDevice | awk '/percentage:/ {print \$2}' | bash -c 'read s; printf \"%.0f%%%%\" \"\${s%%%}\"') " |
