dotfiles/dot_tmux.conf
Felix Delattre 2359ed01a8 Update .chezmoiignore
Update .config/helix/config.toml
Update .config/helix/languages.toml
Update .config/i3/bin/brightness.sh
Update .config/i3/bin/exit.sh
Update .config/i3/bin/i3.config.keycodes
Update .config/i3/bin/i3blocks-battery
Update .config/i3/bin/lock.sh
Update .config/i3/bin/monitor.sh
Update .config/i3/bin/toggletouchpad.sh
Update .config/i3/config
Update .config/i3/i3blocks.conf
Update .config/i3/i3status.conf
Update .config/lvim/config.lua
Update .config/spacebar/spacebarrc
Update .config/sway/bin/brightness.sh
Update .config/sway/bin/i3blocks-battery
Update .config/sway/bin/toggletouchpad.sh
Update .config/sway/blocks.conf
Update .config/sway/config
Update .config/sway/wallpaper.jpg
Update .gitconfig
Update .oh-my-zsh/custom/aliases.zsh
Update .oh-my-zsh/custom/linux.zsh
Update .oh-my-zsh/custom/mac.zsh
Update .oh-my-zsh/custom/prompt.zsh
Update .skhdrc
Update .tmux.conf
Update .vimrc
Update .zshrc
Update backup.sh
Update .yabairc
2023-11-07 23:08:21 +00:00

53 lines
1.6 KiB
Text
Executable file

set -g default-terminal "screen-256color"
set -g status off
set -g prefix C-a
unbind C-b
bind-key C-a send-prefix
unbind %
bind v split-window -h
unbind '"'
bind b split-window -v
unbind r
bind r source-file ~/.tmux.conf
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
bind -r m resize-pane -Z
bind-key u command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection # start selecting text with "v"
#bind-key -T copy-mode-vi 'y' send -X copy-selection # copy text with "y"
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
unbind -T copy-mode-vi MouseDragEnd1Pane # don't exit copy mode after dragging with mouse
set -g mouse on
# tpm plugin
set -g @plugin 'tmux-plugins/tpm'
# list of tmux plugins
set -g @plugin 'christoomey/vim-tmux-navigator' # for navigating panes and vim/nvim with Ctrl-hjkl
set -g @plugin 'jimeh/tmux-themepack' # to configure tmux theme
set -g @plugin 'tmux-plugins/tmux-resurrect' # persist tmux sessions after computer restart
set -g @plugin 'tmux-plugins/tmux-continuum' # automatically saves sessions for you every 15 minutes
set -g @themepack 'basic' # use this theme for tmux
set -g @resurrect-capture-pane-contents 'on' # allow tmux-ressurect to capture pane contents
set -g @continuum-restore 'on' # enable tmux-continuum functionality
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'