Created
March 28, 2025 01:11
-
-
Save netinlet/856202e65ad47c3d622ace02f8a18b93 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # remap prefix to Control + a | |
| unbind C-b | |
| set -g prefix C-a | |
| #bind C-a send-prefix | |
| bind-key a send-prefix | |
| # force a reload of the config file | |
| unbind r | |
| bind r source-file ~/.tmux.conf | |
| # colors | |
| set -g default-terminal "screen-256color" | |
| # enable history? | |
| set-option -g default-command bash | |
| # OS X + Tmux fix for copy/paste | |
| #set-option -g default-command "reattach-to-user-namespace -l bash" | |
| # start window numbering at 1 for easier switching | |
| set -g base-index 1 | |
| # unicode - 2019-04-30 - supposedly this is no longer necessary | |
| #setw -g utf8 on | |
| #set -g status-utf8 on | |
| # status bar settings | |
| set -g status-bg black | |
| set -g status-fg green | |
| set -g status-left '#h:[#S]' | |
| set -g status-left-length 50 | |
| set -g status-right-length 50 | |
| set -g status-right "⚡ #(~/bin/battery Discharging; ~/bin/battery Charging) [✉ #(~/bin/imap_check.py)] %H:%M %d-%h-%Y" | |
| setw -g window-status-current-format "|#I:#W|" | |
| setw -g window-status-current-style fg=colour166 | |
| setw -g window-status-current-style bg=black | |
| set-window-option -g automatic-rename off | |
| # border coloring for panes | |
| #set-option -g pane-active-border-fg colour166 | |
| # listen to alerts from all windows | |
| set -g bell-action any | |
| setw -g window-status-bell bg=white | |
| setw -g window-status-bell fg=red | |
| # quick pane cycling | |
| unbind ^A | |
| bind ^A select-pane -t :.+ | |
| # screen like window toggling | |
| bind Tab last-window | |
| bind Escape copy-mode | |
| # rebind pane tiling - orig | |
| #bind V split-window -h | |
| #bind H split-window | |
| # rebind pane tiling | |
| bind | split-window -h | |
| bind - split-window -v | |
| bind < resize-pane -L 15 | |
| bind > resize-pane -R 15 | |
| bind H resize-pane -L 5 | |
| bind J resize-pane -D 5 | |
| bind K resize-pane -U 5 | |
| bind L resize-pane -R 5 | |
| # bind fast session switching | |
| unbind S | |
| bind S command-prompt "switch -t %1" | |
| # mouse related config | |
| # Tmux 2 | |
| #set -g mouse-select-pane off | |
| #set -g mode-mouse off | |
| # Tmux 2.1 | |
| set-option -g mouse on | |
| # vim movement bindings | |
| set-window-option -g mode-keys vi | |
| bind h select-pane -L | |
| bind j select-pane -D | |
| bind k select-pane -U | |
| bind l select-pane -R | |
| # bind resize commands to keys | |
| bind = resize-pane -D 5 | |
| bind + resize-pane -U 5 | |
| bind < resize-pane -L 5 | |
| bind > resize-pane -R 5 | |
| # Use vim keybindings in copy mode | |
| setw -g mode-keys vi | |
| unbind [ | |
| bind Escape copy-mode | |
| unbind p | |
| bind p paste-buffer | |
| #bind-key -t vi-copy 'v' begin-selection | |
| #bind-key -t vi-copy 'y' copy-selection | |
| bind-key -T copy-mode-vi v send-keys -X begin-selection | |
| bind-key -T copy-mode-vi y send-keys -X copy-selection | |
| # Setup 'v' to begin selection as in Vim | |
| #bind-key -t vi-copy v begin-selection | |
| #bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" | |
| # Update default binding of `Enter` to also use copy-pipe | |
| #unbind -t vi-copy Enter | |
| #bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy" | |
| ### COLOUR (Solarized light) | |
| # default statusbar colors | |
| #set-option -g status-bg white #base2 | |
| #set-option -g status-fg yellow #yellow | |
| #set-option -g status-attr default | |
| # default window title colors | |
| #set-window-option -g window-status-fg brightyellow #base00 | |
| #set-window-option -g window-status-bg default | |
| #set-window-option -g window-status-attr dim | |
| # active window title colors | |
| #set-window-option -g window-status-current-fg brightred #orange | |
| #set-window-option -g window-status-current-bg default | |
| #set-window-option -g window-status-current-attr bright | |
| # pane border | |
| #set-option -g pane-border-fg white #base2 | |
| #set-option -g pane-active-border-fg brightcyan #base1 | |
| # message text | |
| #set-option -g message-bg white #base2 | |
| #set-option -g message-fg brightred #orange | |
| # pane number display | |
| #set-option -g display-panes-active-colour blue #blue | |
| #set-option -g display-panes-colour brightred #orange | |
| # clock | |
| #set-window-option -g clock-mode-colour green #green |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment