summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlake Romero <blake@developercraft.com>2026-03-22 00:04:21 +0000
committerBlake Romero <blake@developercraft.com>2026-03-22 00:04:21 +0000
commit8d69652d25b29d31a6da435a123d451c4a7da647 (patch)
tree66319b577b5e9d1a7972aab4fb8aa0a03343f169
parent9d139965f1c0c2ecef66989f38dc96f9da87127b (diff)
Add battery to status, adjust & add key bindingsHEADmain
-rw-r--r--tmux.conf18
1 files changed, 15 insertions, 3 deletions
diff --git a/tmux.conf b/tmux.conf
index 27af096..3db2baa 100644
--- a/tmux.conf
+++ b/tmux.conf
@@ -8,9 +8,9 @@ set -g status-left " #S | "
set -g window-status-format " #W "
set -g window-status-current-format "<#W>"
set -g status-left-length 30
-set -g status-right "#{user}@#H | %F | %R "
+set -g status-right "#(acpi | cut -f2 -d,) | #{user}@#H | %F | %R "
set -g status-right-length 150
-set -g status-interval 5
+set -g status-interval 10
# Pane
set -g pane-border-status top
@@ -44,8 +44,11 @@ bind i "display-message; display-panes"
# Command prompt
bind Enter command-prompt
+# Show clock
+bind c clock-mode
+
# Prompt for a name when creating a new window
-bind c command-prompt -p " New window name:" "new-window; rename-window %%"
+bind t command-prompt -p " New window name:" "new-window; rename-window %%"
# Toggle zoom
bind m resize-pane -Z
@@ -61,6 +64,7 @@ bind R command-prompt "rename-session %%"
# Rename window
bind r command-prompt "rename-window %%"
+
# Close session
bind C-q confirm-before -p "Kill session '#S'? (y/n)" kill-session
@@ -86,6 +90,11 @@ bind d run "if [ #{pane_at_bottom} -eq 0 ]; then tmux swap-pane -D; fi"
bind [ run "if [ #{pane_at_left} -eq 0 ]; then tmux swap-pane -s '{left-of}'; fi"
bind ] run "if [ #{pane_at_right} -eq 0 ]; then tmux swap-pane -s '{right-of}'; fi"
+bind J run "if [ #{pane_at_top} -eq 0 ]; then tmux swap-pane -U; fi"
+bind K run "if [ #{pane_at_bottom} -eq 0 ]; then tmux swap-pane -D; fi"
+bind L run "if [ #{pane_at_left} -eq 0 ]; then tmux swap-pane -s '{left-of}'; fi"
+bind \: run "if [ #{pane_at_right} -eq 0 ]; then tmux swap-pane -s '{right-of}'; fi"
+
# Detach session
bind C-d detach
@@ -95,3 +104,6 @@ bind w choose-window
# Next session
bind C-s switch-client -n
+
+# Next window
+bind Tab next-window