@@ -18,7 +18,7 @@ set-option -g mouse on
1818bind s choose-tree -sZ -O name
1919
2020# act like vim
21- set-window-option -g mode-keys vi
21+ set -w -g mode-keys vi
2222bind h select-pane -L
2323bind j select-pane -D
2424bind k select-pane -U
@@ -34,8 +34,8 @@ set-option -g prefix C-a
3434bind C-a send-prefix
3535
3636# look good
37- # set-option -g default-terminal "screen-256color"
38- set-option -g default-terminal " tmux-256color"
37+ set-option -g default-terminal " screen-256color"
38+ # set-option -g default-terminal "tmux-256color"
3939set-option -a terminal-overrides " ,*256col*:RGB"
4040
4141set-option -g history-limit 5000
@@ -48,7 +48,7 @@ bind-key _ split-window -v -c "#{pane_current_path}"
4848bind-key \\ split-window -h -c " #{pane_current_path}"
4949
5050# # Set window notifications
51- set-window- option -g monitor-activity on
51+ set-option -w -g monitor-activity on
5252set-option -g visual-activity on
5353
5454# panes
@@ -62,7 +62,7 @@ bind-key -r L resize-pane -R 5
6262# Borders on panes
6363set-option -g pane-border-style fg=green,bg=black
6464set-option -g pane-border-lines single
65- set-option -g pane-border-status top
65+ # set-option -g pane-border-status top
6666set-option -g pane-border-indicators off
6767
6868# active pane border
@@ -85,17 +85,18 @@ set-option -g window-status-style fg=cyan,dim,bg=default
8585set-option -g window-status-current-style fg=white,nodim,bold,bg=red
8686
8787# # command/message line colors
88- set-option -g message-style fg=white,bg=black ,bold
88+ set-option -g message-style fg=white,bg=color242 ,bold
8989
9090# # Refresh the status bar every 30 seconds.
9191set-option -g status-interval 30
9292
9393# # The status bar itself.
9494set-option -g status-justify centre
9595set-option -g status-left-length 40
96- set-option -g status-left " #[fg=#009900]Session: #S #[fg=yellow]#I #[fg=cyan]#P"
97- # set -g status-right "#[fg=blue]#(~/bin/battery Discharging) |"
98- set-option -g status-right " #[fg=blue]#(~/bin/battery Discharging) | #[fg=cyan]%d %b %R"
96+ set-option -g status-left " #[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P"
97+ # set -g status-right "#[fg=blue]#(~/bin/battery) |"
98+ set-option -g status-right \
99+ " #[fg=purple]#(~/bin/battery) | #[fg=cyan]%d %b %R"
99100
100101set-option -g display-time 1000
101102
@@ -138,16 +139,33 @@ bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
138139bind-key -n C-l if-shell " $is_vim " " send-keys C-l" " select-pane -R"
139140bind-key -n C-\\ if-shell " $is_vim " " send-keys C-\\ " " select-pane -l"
140141
141- bind-key R run " (tmux split-window -v irb)"
142+ bind-key R run " (tmux split-window -v node)"
143+
144+ # set-hook -g after-new-window "send-keys ls Enter"
145+
146+ # set-hook -g after-split-window "display-message 'changing layout'; selectl even-vertical"
147+
148+ # set-hook -g after-new-window \
149+ " split-window; select-layout tiled"
150+
151+ # set-hook -g after-new-window[0] "send-keys ls Enter"
152+ # set-hook -g after-new-window[1] "split-window"
153+ # set-hook -g after-new-window[2] "select-layout tiled"
154+ # set-hook -g after-new-window[3] "select-pane -U"
155+ # set-hook -g after-new-window[4] "send-keys uname Enter"
156+
142157
143158# popup menu
144159bind-key e \
145- display-menu -T " # " -x 0 -y 0 \
160+ display-menu -T " Quick Menu " -x C -y C \
146161 " New Window" n " new-window" \
147162 " Horizontal Split" - " split-window" \
148163 " Vertical Split" | " split-window -h" \
149164 " Close Pane" x " kill-pane"
150165
166+ bind-key O display-popup -d " ~/" -x C -y 30 -w 50% -h 50% \
167+ -e " POPUP=true" -E " bash"
168+
151169
152170# hostname
153171# ls -alh
0 commit comments