# tmux configuration by sharpicx. # my lovely arch, archicx. # Unbinded keys unbind n # default: next window unbind p # default: previous winodow unbind C-b # default: prefix unbind r unbind h unbind v unbind % # default: key of vertcial split unbind '"' # default: key of horizontal split unbind c # default: create a new window unbind k # default: none at all. unbind , # default: rename unbind + unbind C-c # --- # --- # General Settings. # --- set -g repeat-time 200 setw -g allow-rename off setw -g automatic-rename off set -g buffer-limit 20 set -g default-terminal "xterm-256color" set -g base-index 1 set -g set-titles off set -g base-index 1 set -g aggressive-resize on set -g mouse on # --- # replacing the default prefix with a new one. # --- set -g prefix C-a bind-key a send-prefix # --- # key to reload a config file. # --- bind + source ~/.tmux.conf \; display 'CONFIG RELOADED!' # --- # Window settings # --- # error in the sequences of these keys bind-key -n Home send Escape "OH" bind-key -n End send Escape "OF" # create window bind c new-window -c "#{pane_current_path}" # kill window and pane bind x kill-pane bind X kill-window # renaming window & session bind r command-prompt "rename-window '%%" bind R command-prompt "rename-session '%%'" # hotkey to switch between panes bind -n M-Left select-pane -L bind -n M-Right select-pane -R bind -n M-Up select-pane -U bind -n M-Down select-pane -D # hotkeys to make a move between windows in a session. bind -n S-Left previous-window bind -n S-Right next-window # tmux pane border colors set -g pane-border-style "fg=white, bg=black" set -g pane-active-border-style "fg=green, bg=black" # Splitting Panels. bind - split-window -v -c "#{pane_current_path}" bind | split-window -h -c "#{pane_current_path}" set -g display-panes-time 1500 # activating UTF-8 # set-window-option -g utf8 on # moving pane to a new window. bind-key C-@ choose-window 'join-pane -s "%%"' # status line source "/usr/lib/python3.10/site-packages/powerline/bindings/tmux/powerline.conf" # set window title set-window-option -g automatic-rename on set-option -g set-titles on # Mouse mode. set -g mouse on # adding more history. set -g history-limit 200000 # List of plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-cpu' set -g @plugin 'laktak/extrakto' # set -g @plugin "janoamaral/tokyo-night-tmux" set -g @plugin 'hoshiya4522/tokyo-night-tmux' set -g @plugin 'tmux-plugins/tmux-prefix-highlight' set -g @plugin 'wfxr/tmux-fzf-url' # Other examples: # doesnt work # set -g @plugin "arcticicestudio/nord-tmux" set -g @plugin 'b0o/tmux-autoreload' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run -b '~/.tmux/plugins/tpm/tpm'