commit 60195d7f01cd415c98bd63871e5dfc6e0bfb7545
parent c372480ab26bf1bf9b302efe7e31a6c7eb56d10e
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Fri, 1 Nov 2019 15:14:08 -0400
tmux: config and some style
Former-commit-id: 648e41eb29278fe0e0014a5afa89fa71c10b91cc
Diffstat:
1 file changed, 25 insertions(+), 9 deletions(-)
diff --git a/tmux/tmux.conf b/tmux/tmux.conf
@@ -10,26 +10,27 @@ set -g default-terminal "xterm-256color"
set -g pane-active-border-style fg=green
set -g set-titles on
set -g set-titles-string '#H:#S.#I.#P #W #T'
-set -g status-bg black
-set -g status-fg cyan
+set -g status-bg '#ffffff'
+set -g status-fg white
set -g status-interval 5
set -g status-justify right
-set -g status-left '#[fg=magenta]» #[fg=blue,bold]#T#[default]'
+set -g status-left '#[fg=#228822]» #[fg=#4477ff,bold]#T#[default]'
set -g status-left-length 30
-set -g status-right '#[fg=red,bold] #[fg=cyan]»» #[fg=blue,bold]###S #[fg=magenta]%R %m-%d#(acpi | cut -d ',' -f 2)#[default]'
+set -g status-right '#[fg=#4477ff,bold]»» ###S %R %m-%d#(acpi | cut -d ',' -f 2)#[default]'
set -g visual-activity on
+set -g base-index 1 # start numbering windows at 1, easier to reach
# }}}
# Window options {{{
setw -g mode-keys vi
setw -g monitor-activity on
-setw -g window-status-current-style bg=red
-setw -g window-status-current-style fg=white
setw -g xterm-keys on # for vim
setw -g aggressive-resize on
setw -g automatic-rename
setw -g mode-keys vi
-setw -g mode-style bg='#222222'
-setw -g window-status-current-style reverse
+setw -g mode-style bg='#d0d0d0'
+setw -g window-status-current-style bg='#99ddff,bold'
+setw -g window-status-activity-style bg='#e9cddf'
+setw -g pane-base-index 1 # start numbering panes at 1, easier to reach
# }}}
# Key bindings {{{
# General {{{
@@ -63,9 +64,15 @@ unbind C-k
bind C-j previous-window
bind C-k next-window
+# Moving windows
+unbind H
+unbind L
+bind -r L swap-window -t +1
+bind -r H swap-window -t -1
+
# Rotate the layout of panes
unbind C-o
-bind M-r rotate-window
+bind M-v rotate-window
# Switch layouts
unbind M--
@@ -77,6 +84,10 @@ bind M-| select-layout "even-horizontal"
unbind A
bind A command-prompt "rename-window %%"
+# Watch/unwatch for activity
+unbind !
+bind ! setw monitor-activity \; display-message "#{?monitor-activity,M,Not m}onitoring activity"
+
# }}}
# Panes {{{
# Pane navigation
@@ -104,11 +115,16 @@ bind Enter break-pane
bind J command-prompt -p "join pane from:" "join-pane -s '%%'"
# Listing panes
+unbind Space
+unbind S
+unbind W
bind Space list-panes
bind S choose-tree -Zs
+bind W choose-tree -Zw
# Synchronize panes
unbind @
bind @ setw synchronize-panes \; display-message "Toggle sync panes"
+
# }}}
# }}}