commit e5a840c41dea2fb7641fc726bdda8fa741a102de
parent 6c7c71732d29d7a236a671ed7ffc9811bddd2733
Author: Alex Balgavy <alex@balgavy.eu>
Date: Sun, 13 Dec 2020 11:49:44 +0100
tmux: improve statusline, add keybind to clear pane
Former-commit-id: 62fc84283798b99eaba868f66df5d3964527be5d
Diffstat:
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/tmux/tmux-dark.conf b/tmux/tmux-dark.conf
@@ -17,7 +17,7 @@ set -g status-interval 5
set -g status-justify right
set -g status-left-length 40
set -g status-left '#[fg=#557983]» #[fg=#88a6f8,bold]#T#{?pane_synchronized, #[fg=#f59970#,bold][SYNC],}#[default]'
-set -g status-right '#[fg=#557983,bold]»» ###S %R %m-%d#(acpi | cut -d ',' -f 2)#[default]'
+set -g status-right '#[fg=#557983,bold] »» Sesh #S | #(battery -p)%% | %R (%b %d, %a)#[default]'
set -g visual-activity on
set -g base-index 1 # start numbering windows at 1, easier to reach
set -s escape-time 0
@@ -140,5 +140,7 @@ bind W choose-tree -Zw
unbind @
bind @ setw synchronize-panes \; display-message "Toggle sync panes"
+# Clear pane
+bind C-l send-keys -R \; clear-history
# }}}
# }}}
diff --git a/tmux/tmux-light.conf b/tmux/tmux-light.conf
@@ -16,7 +16,7 @@ set -g status-interval 5
set -g status-justify right
set -g status-left-length 40
set -g status-left '#[fg=#228822]» #[fg=#4477ff,bold]#T#{?pane_synchronized, #[fg=#cc5500#,bold][SYNC],}#[default]'
-set -g status-right '#[fg=#4477ff,bold]»» ###S %R %m-%d#(acpi | cut -d ',' -f 2)#[default]'
+set -g status-right "#[fg=#4477ff,bold] »» Sesh #S | #(battery -p)%% | %R (%b %d, %a)#[default]"
set -g visual-activity on
set -g base-index 1 # start numbering windows at 1, easier to reach
set -s escape-time 0
@@ -138,5 +138,7 @@ bind W choose-tree -Zw
unbind @
bind @ setw synchronize-panes \; display-message "Toggle sync panes"
+# Clear pane
+bind C-l send-keys -R \; clear-history
# }}}
# }}}