grace/dots

dotfiles/nix configs

git clone https://git.gae.moe/grace/dots

Grace Yoderjj and tmux: changes5c2726a

old_stow_config
4.5 KiB90 linesraw
1# TMUX_COLORTAG_ROUNDED_POWERLINE=yes
2set-environment -g PATH "/Users/gyoder/.local/nvim-macos-arm64/bin:/opt/homebrew/Cellar/universal-ctags/HEAD-43ca055/bin:/Users/gyoder/.local/xonsh-env/xbin:/Users/gyoder/.local/xonsh-env/xbin:/opt/homebrew/opt/icu4c@76/sbin:/opt/homebrew/opt/icu4c@76/bin:/opt/homebrew/opt/llvm/bin:/Users/gyoder/.dotnet/tools:/Users/gyoder/.local/bin:/Users/gyoder/Library/Python/3.9/bin:/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/emulators:/opt/homebrew/bin/iodine:/opt/homebrew/bin:/opt/homebrew/opt/zig@0.14/bin:/Users/gyoder/.platformio/penv/bin/:/Users/gyoder/.cargo/bin:/Users/gyoder/.local/xonsh-env/xbin:/Users/gyoder/go/bin:/usr/bin:/usr/local/bin:/usr/sbin:/usr/local/sbin:/bin:/sbin:/opt/homebrew/opt/coreutils/libexec/gnubin:/opt/homebrew/opt/binutils/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/pkg/env/global/bin:/usr/local/share/dotnet:~/.dotnet/tools:/opt/homebrew/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Ghostty.app/Contents/MacOS:/Users/gyoder/.lmstudio/bin:$PATH"
3set-environment -g TMUX_POWERLINE_THEME bubble
4# Options
5set -g mouse on
6# set -g default-terminal "screen-256color"
7set -g default-terminal "xterm-ghostty"
8# set-option -sa terminal-overrides ',xterm-256color:Tc,xterm-*:allow-passthrough'
9set -ga terminal-overrides ",xterm-ghostty:Tc"
10
11set-window-option -g mode-keys vi
12set -g status-position top
13set-option -g set-clipboard on
14set-option -g get-clipboard request
15set -g set-titles on
16set -g set-titles-string "#{session_name}"
17set -g @yank_action "copy-pipe"
18set -g @yank_clipboard 'osc52'
19set -g base-index 1
20setw -g pane-base-index 1
21
22
23set -g allow-passthrough all
24set -as terminal-features ",xterm-ghostty:hyperlinks"
25
26
27
28# Keybinds
29set-option -g prefix C-\\
30unbind C-b
31bind C-\\ send-prefix
32bind r source-file ~/.tmux.conf
33# alt for nav between panes
34bind v split-window -h -c "#{pane_current_path}"
35bind b split-window -v -c "#{pane_current_path}"
36bind c new-window -c "#{pane_current_path}"
37bind -n M-h select-pane -L
38bind -n M-j select-pane -D
39bind -n M-k select-pane -U
40bind -n M-l select-pane -R
41bind -n M-1 select-window -t 1
42bind -n M-2 select-window -t 2
43bind -n M-3 select-window -t 3
44bind -n M-4 select-window -t 4
45bind -n M-5 select-window -t 5
46bind -n M-6 select-window -t 6
47bind -n M-7 select-window -t 7
48bind -n M-8 select-window -t 8
49bind -n M-9 select-window -t 9
50
51bind-key "T" run-shell "sesh connect \"$(
52    sesh list --icons | fzf-tmux -p 80%,70% \
53    --no-sort --ansi --border-label ' sesh ' --prompt '⚡  ' \
54    --header '  ^a all ^t tmux ^g configs ^x zoxide ^d tmux kill ^f find' \
55    --bind 'tab:down,btab:up' \
56    --bind 'ctrl-a:change-prompt(⚡  )+reload(sesh list --icons)' \
57    --bind 'ctrl-t:change-prompt(🪟  )+reload(sesh list -t --icons)' \
58    --bind 'ctrl-g:change-prompt(⚙️  )+reload(sesh list -c --icons)' \
59    --bind 'ctrl-x:change-prompt(📁  )+reload(sesh list -z --icons)' \
60    --bind 'ctrl-f:change-prompt(🔎  )+reload(fd -H -d 2 -t d -E .Trash . ~)' \
61    --bind 'ctrl-d:execute(tmux kill-session -t {2..})+change-prompt(⚡  )+reload(sesh list --icons)' \
62    --preview-window 'right:55%' \
63    --preview 'sesh preview {}'
64    )\""
65
66bind-key -T copy-mode-vi [ send-keys -X previous-prompt
67bind-key -T copy-mode-vi M-[ send-keys -X previous-prompt -o
68bind-key -T copy-mode-vi ] send-keys -X next-prompt
69bind-key -T copy-mode-vi M-] send-keys -X next-prompt -o
70
71# Plugins
72set -g @plugin 'tmux-plugins/tpm'
73set -g @plugin 'tmux-plugins/tmux-sensible'
74set -g @plugin 'tmux-plugins/tmux-yank'
75# set -g @plugin 'Determinant/tmux-colortag'
76# set -g @plugin 'erikw/tmux-powerline'
77set -g @plugin 'tomhey/tmux-remote-sessions'
78
79set -g @plugin 'rose-pine/tmux'
80set -g @rose_pine_variant 'main'
81set -g @rose_pine_left_separator ' > ' # The strings to use as separators are 1-space padded
82set -g @rose_pine_right_separator '  ' # Accepts both normal chars & nerdfont icons
83set -g @rose_pine_field_separator ' | ' # Again, 1-space padding, it updates with prefix + I
84set -g @rose_pine_window_separator ':' # Replaces the default `:` between the window number and name
85set -g @rose_pine_window_status_separator "  "
86set -g @plugin 'tmux-plugins/tmux-resurrect'
87set -g @plugin 'tmux-plugins/tmux-continuum'
88
89
90run '~/.tmux/plugins/tpm/tpm'