Skip to content

Commit 1fb299d

Browse files
committed
config: 🛠️ tmux config modifications
1 parent 4978d9c commit 1fb299d

1 file changed

Lines changed: 30 additions & 18 deletions

File tree

tmux/tmux.conf

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,18 @@ set -ga update-environment FZF_DEFAULT_OPTS
7070
# Status Line and Theming
7171
#--------------------------------------------------------------------------
7272
# Define color variables
73-
thm_bg="default"
74-
thm_bg_dark="default"
75-
thm_fg="#c0caf5"
76-
thm_gray="#9499b8"
77-
thm_magenta="#bb9af7"
78-
thm_pink="#ff007c"
79-
thm_green="#9ece6a"
80-
thm_blue="#2ac3de"
81-
thm_black="#414868"
82-
thm_yellow="#e0af68"
83-
thm_selected="#364a82"
84-
thm_match="#3d59a1"
73+
thm_bg="default" # keep, uses terminal/bg
74+
thm_bg_dark="default" # same
75+
thm_fg="#c5c8c9" # light foreground (no-clown-fiesta fg1)
76+
thm_gray="#7c7f93" # muted gray
77+
thm_magenta="#b77ee0" # violet/purple accent
78+
thm_pink="#e46876" # wave red/pink accent
79+
thm_green="#87a35e" # autumn green
80+
thm_blue="#7aa89f" # wave aqua (soft teal-blue)
81+
thm_black="#1b1d26" # sumiInk background tone
82+
thm_yellow="#e6c384" # carp yellow
83+
thm_selected="#2d353b" # selection (sumiInk3)
84+
thm_match="#a3d4d5" # crystal aqua highlight
8585

8686
# Enable status line and position it
8787
set -g status "on"
@@ -91,10 +91,11 @@ set -g status-style 'fg=white'
9191

9292
# Window/pane border styles
9393
set -g pane-border-style "fg=#2c2f3d,bg=default"
94-
set -g pane-active-border-style "fg=${thm_match}"
94+
set -g pane-active-border-style "fg=${thm_gray}"
9595
set -gw pane-border-indicators 'colour'
9696
set -g window-status-activity-style "none"
9797
set-hook -g -w pane-focus-in "set-option -Fw pane-border-status '#{?#{e|>:#{window_panes},1},top,off}'"
98+
set -g pane-border-format "#H"
9899

99100

100101
# Status left: session name
@@ -207,10 +208,6 @@ bind y run -b "tmux show-buffer | pbcopy" \; display-message "copied tmux buffer
207208
bind-key B break-pane -d
208209
bind-key E command-prompt -p "join pane from: " "join-pane -h -s '%%'"
209210

210-
# Toggle tmux status bar top/bottom
211-
bind-key C-k run-shell "tmux set-option -g status-position top;"
212-
bind-key C-j run-shell "tmux set-option -g status-position bottom;"
213-
214211
# Opencode popup menu
215212
bind o popup -E -d "#{pane_current_path}" -w 90% -h 90% "opencode"
216213
bind O new-window -n " opencode" -c "#{pane_current_path}" "opencode"
@@ -233,10 +230,25 @@ bind-key "T" run-shell "sesh connect \"$(
233230
--preview 'sesh preview {}'
234231
)\""
235232

233+
# Find and jump to window
234+
bind f display-popup -E "\
235+
tmux list-windows -F '#{window_index} #{window_name}' |\
236+
sed '/^$/d' |\
237+
fzf --reverse --header select-window |\
238+
cut -d ' ' -f 1 |\
239+
xargs tmux select-window -t"
240+
241+
# Find and jump to session
242+
bind e display-popup -E "\
243+
tmux list-sessions -F '#{?session_attached,,#{session_name}}' |\
244+
sed '/^$/d' |\
245+
fzf --reverse --header select-session |\
246+
xargs tmux switch-client -t"
247+
236248
#--------------------------------------------------------------------------
237249
# List Panes Integration
238250
# --------------------------------------------------------------------------
239-
bind-key f run-shell -b "$HOME/.config/tmux/scripts/list-panes.sh"
251+
# bind-key f run-shell -b "$HOME/.config/tmux/scripts/list-panes.sh"
240252

241253
#--------------------------------------------------------------------------
242254
# Plugins

0 commit comments

Comments
 (0)