Files
dotfiles/dot_tmux.conf
Daniel Bauer ab9bf312de update tmux
2025-07-31 14:31:23 +02:00

30 lines
1.1 KiB
Plaintext

set-window-option -g xterm-keys on
set -s escape-time 10 # faster command timeout
set -g history-limit 10000
set -g status-interval 2
set-option -g mouse on
# make scrolling with wheels work
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'thewtex/tmux-mem-cpu-load'
set -g @plugin 'sainnhe/tmux-fzf'
set -g @treemux-nvim-command 'NVIM_APPNAME=nvim-treemux nvim'
set -g @treemux-tree-nvim-init-file '~/.tmux/plugins/treemux/configs/treemux_init.lua'
set -g @plugin 'kiyoon/treemux'
run -b '~/.tmux/plugins/tpm/tpm'
# set -g status-right '#{cpu_bg_color} CPU: #{cpu_percentage} GPU: #{gpu} RAM: #{ram}| %a %h-%d %H:%M '
# Status line color
set -g status-style fg=colour136,bg=colour235
set -g status-left "#[default]"
set -g status-right "%d-%h %H:%M #($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load -c -v -a 0 -r 2 -i 2)"