Update.
This commit is contained in:
parent
0f42ec4d1f
commit
d74b672e60
13 changed files with 89 additions and 47 deletions
|
@ -3,6 +3,7 @@ set-option -sa terminal-overrides ",alacritty:Tc"
|
|||
|
||||
# enable mouse support
|
||||
set -g mouse on
|
||||
set -g default-terminal "tmux-256color"
|
||||
|
||||
# start window and panes indexing at 1
|
||||
set -g base-index 1
|
||||
|
@ -32,12 +33,6 @@ bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
|||
bind "'" split-window -v -c "#{pane_current_path}"
|
||||
bind '\' split-window -h -c "#{pane_current_path}"
|
||||
|
||||
# Floating popup keybindings
|
||||
bind-key g run-shell 'tmux-popup lazygit'
|
||||
bind-key f run-shell 'tmux-popup nnn'
|
||||
bind-key h run-shell 'tmux-popup htop'
|
||||
bind-key t run-shell 'tmux-popup t'
|
||||
|
||||
# Vim keybindings for pane movement
|
||||
setw -g mode-keys vi
|
||||
bind-key h select-pane -L
|
||||
|
@ -51,21 +46,38 @@ bind-key x kill-pane
|
|||
# Don't exit from tmux when closing a session
|
||||
set -g detach-on-destroy off
|
||||
|
||||
# Catppuccin settings
|
||||
set -g @catppuccin_flavour 'frappe'
|
||||
set -g @catppuccin_window_right_separator "█ "
|
||||
set -g @catppuccin_window_number_position "right"
|
||||
set -g @catppuccin_window_middle_separator " | "
|
||||
# sesh for session management
|
||||
bind-key "T" run-shell "sesh connect \"$(
|
||||
sesh list --icons | fzf-tmux -p 55%,60% \
|
||||
--no-sort --ansi --border-label ' sesh ' --prompt '⚡ ' \
|
||||
--header ' ^a all ^t tmux ^g configs ^x zoxide ^d tmux kill ^f find' \
|
||||
--bind 'tab:down,btab:up' \
|
||||
--bind 'ctrl-a:change-prompt(⚡ )+reload(sesh list --icons)' \
|
||||
--bind 'ctrl-t:change-prompt(🪟 )+reload(sesh list -t --icons)' \
|
||||
--bind 'ctrl-g:change-prompt(⚙️ )+reload(sesh list -c --icons)' \
|
||||
--bind 'ctrl-x:change-prompt(📁 )+reload(sesh list -z --icons)' \
|
||||
--bind 'ctrl-f:change-prompt(🔎 )+reload(fd -H -d 2 -t d -E .Trash . ~)' \
|
||||
--bind 'ctrl-d:execute(tmux kill-session -t {2..})+change-prompt(⚡ )+reload(sesh list --icons)' \
|
||||
)\""
|
||||
|
||||
set -g @catppuccin_window_default_fill "none"
|
||||
bind-key "n" run-shell "sesh connect nnn"
|
||||
|
||||
set -g @catppuccin_window_current_fill "all"
|
||||
# use sesh for last session
|
||||
bind -N "last-session (via sesh) " L run-shell "sesh last"
|
||||
|
||||
# Configure catppuccin
|
||||
set -g @catppuccin_flavor 'frappe'
|
||||
set -g @catppuccin_window_status_style 'basic'
|
||||
|
||||
set -g status-left ''
|
||||
set -g status-right '#{E:@catppuccin_status_session}'
|
||||
set -ag status-right '#{E:@catppuccin_status_application}'
|
||||
set -ag status-right '#{E:@catppuccin_status_date_time}'
|
||||
|
||||
set -g @catppuccin_status_modules_right "application session date_time"
|
||||
set -g @catppuccin_status_left_separator "█"
|
||||
set -g @catppuccin_status_right_separator "█"
|
||||
|
||||
set -g @catppuccin_date_time_text "%Y-%m-%d %H:%M"
|
||||
set -g @catppuccin_date_time_text " %d-%m-%Y %H:%M "
|
||||
|
||||
# Status bar border
|
||||
setw -g pane-border-status top
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue