Skip to content

Instantly share code, notes, and snippets.

@adrianvalenz
Last active March 31, 2021 08:42
Show Gist options
  • Select an option

  • Save adrianvalenz/641d3a30a6c737a0777c696908d4a63e to your computer and use it in GitHub Desktop.

Select an option

Save adrianvalenz/641d3a30a6c737a0777c696908d4a63e to your computer and use it in GitHub Desktop.
.tmux.conf files
# Tmux prefix...most people use Control-A
set-option -g prefix C-f
#No delay when hitting escape key
set -sg escape-time 0
#No or little delay in repeat time
set-option -g repeat-time 500
set -g mouse on
# increase scrollback lines
set -g history-limit 10000
set -g default-terminal "tmux-256color"
set -as terminal-overrides ',xterm*:sitm=\E[3m'
#set -g default-terminal "screen-256color"
#set -g default-terminal "tmux"
#set -g default-terminal "screen-256color-italic"
#Positon status bar on top of window
#set-option -g status-position top
# Use vim keybindings in copy mode
setw -g mode-keys vi
bind -r C-k resize-pane -U
bind -r C-j resize-pane -D
bind -r C-h resize-pane -L
bind -r C-l resize-pane -R
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
unbind Up
unbind Down
unbind Left
unbind Right
unbind C-Up
unbind C-Down
unbind C-Left
unbind C-Right
#set -g status-bg black
#set -g status-fg white
# message text
set -g status-interval 1
# One Dark theme
#mono_1: '#abb2bf'
#mono_2: '#828997'
#mono_3: '#5c6370'
#mono_4: '#4b5263'
#
#hue_1: '#56b6c2' # cyan
#hue_2: '#61afef' # blue
#hue_3: '#c678dd' # purple
#hue_4: '#98c379' # green
#
#hue_5: '#e06c75' # red 1
#hue_5_2: '#be5046' # red 2
#
#hue_6: '#d19a66' # orange 1
#hue_6_2: '#e5c07b' # orange 2
#
#syntax_bg: '#282c34'
#syntax_gutter: '#636d83'
#syntax_cursor: '#2c323c'
#
#syntax_accent: '#528bff'
#
#vertsplit: '#181a1f'
#special_grey: '#3b4048'
#visual_grey: '#3e4452'
#
set -g pane-border-style fg='#c678dd'
set -g pane-active-border-style fg='#56b6c2'
#set -g message-style bg='#c678dd',fg='#828997'
set -g status-style bg='#61afef',fg='#3b4048'
#set -g status-interval 1
#set -g status-left '#[bg=#e06c75]#[fg=#56b6c2]#{?client_prefix,#[bg=#e06c75],} ☺ '
#
#set -ga status-left '#[bg=#e06c75]#[fg=#56b6c2] #{?window_zoomed_flag, ↕ , }'
#
#set-window-option -g window-status-style fg='#56b6c2',bg=default
#set-window-option -g window-status-current-style fg='#56b6c2',bg='#abb2bf'
#
#set -g window-status-current-format "#[fg=#98c379]#[bg=#61afef]#[fg=#56b6c2]#[bg=#61afef] #I #W #[fg=#c678dd]#[bg=#61afef]"
#set -g window-status-format "#[fg=#c678dd]#[bg=#e06c75]#I #W #[fg=#c678dd] "
#
#set -g status-right '#[fg=#56b6c2,bg=#e06c75]#[fg=#56b6c2,bg=#e06c75] #(tmux-mem-cpu-load -g 5 --interval 2) '
#set -ga status-right '#[fg=#56b6c2,bg=#e06c75]#[fg=#56b6c2,bg=#e06c75] #(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") '
#set -ga status-right '#[fg=#56b6c2,bg=#e06c75]#[fg=#56b6c2,bg=#e06c75] %a %H:%M:%S #[fg=#6272a4]%Y-%m-%d '
# Dracula Colours
# background_color '#282a36'
# current_line_color '#44475a'
# foreground_color '#f8f8f2'
# comment_color '#6272a4'
# cyan '#8be9fd'
# green # '#50fa7b'
# orange '#ffb86c'
# pink '#ff79c6'
# purple '#bd93f9'
# red '#ff5555'
# yellow '#f1fa8c'
set -g default-terminal "screen-256color"
set -g pane-border-style fg='#bd93f9'
set -g pane-active-border-style fg='#ff79c6'
set -g message-style bg='#44475a',fg='#8be9fd'
set -g status-style bg='#44475a',fg='#bd93f9'
set -g status-interval 1
set -g status-left '#[bg=#f8f8f2]#[fg=#282a36]#{?client_prefix,#[bg=#ff79c6],} ☺ '
set -ga status-left '#[bg=#44475a]#[fg=#ff79c6] #{?window_zoomed_flag, ↕ , }'
set-window-option -g window-status-style fg='#bd93f9',bg=default
set-window-option -g window-status-current-style fg='#ff79c6',bg='#282a36'
set -g window-status-current-format "#[fg=#44475a]#[bg=#bd93f9]#[fg=#f8f8f2]#[bg=#bd93f9] #I #W #[fg=#bd93f9]#[bg=#44475a]"
set -g window-status-format "#[fg=#f8f8f2]#[bg=#44475a]#I #W #[fg=#44475a] "
set -g status-right '#[fg=#8be9fd,bg=#44475a]#[fg=#44475a,bg=#8be9fd] #(tmux-mem-cpu-load -g 5 --interval 2) '
set -ga status-right '#[fg=#ff79c6,bg=#8be9fd]#[fg=#44475a,bg=#ff79c6] #(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") '
set -ga status-right '#[fg=#bd93f9,bg=#ff79c6]#[fg=#f8f8f2,bg=#bd93f9] %a %H:%M:%S #[fg=#6272a4]%Y-%m-%d '
kill-pane 0? (y/n)
~ ❯❯❯ vviim .
1 # Tmux prefix...most people use Control-A
kill-pane 0? (y/n)
~ ❯❯❯ vviim aasdfassssssssssssskkkkk a vimaassddfd s a vim i v
1 # Tmux prefix...most people use Control-A
Last login: Mon Sep 24 02:32:36 on ttys002
You have new mail.
~ ❯❯❯ tmux master ✚ βœ– β—Ό
[exited]
~ ❯❯❯ vim .tmux.conf master ✚ βœ– β—Ό
~ ❯❯❯ tmux master ✚ βœ– β—Ό
[exited]
~ ❯❯❯ vim .tmux.conf master ✚ βœ– β—Ό
~ ❯❯❯ clear master ✚ βœ– β—Ό
~ ❯❯❯
~ ❯❯❯
~ ❯❯❯ tmux master ✚ βœ– β—Ό
kill-pane 0? (y/n)
~ ❯❯❯ vvssd
~ ❯❯❯ tmux master ✚ βœ– β—Ό
[exited]
~ ❯❯❯ clear master ✚ βœ– β—Ό
~ ❯❯❯
~ ❯❯❯
~ ❯❯❯ vim .tmux.conf master ✚ βœ– β—Ό
~ ❯❯❯ vim .tmux.conf master ✚ βœ– β—Ό
22
23 # increase scrollback lines
24 set -g history-limit 10000
25
26 #set -g status-right '#{battery_status_bg} Batt: #{battery_icon} #{battery_percentage} #{battery_remain} | %a %h-%d %H:%M '
27 set -g status-right ' Batt: #{battery_icon} #{battery_percentage} #{battery_remain} | %a %h-%d %H:%M '
28 set -g @batt_charged_icon "😎"
29 set -g @batt_charging_icon "πŸ‘"
30 set -g @batt_discharging_icon "πŸ‘Ž"
31 set -g @batt_attached_icon "😐"
32
33 # visualness
34 set -g status-fg blue
35 set -g status-bg black
36 set -g pane-border-fg black
37 set -g pane-active-border-fg blue
38
39 #Changes the color of the full status bar
40 setw -g window-status-format "#[fg=white]#[bg=black] #I: #[bg=black]#[fg=blue] #W "
41 setw -g window-status-current-format "#[bg=brightblack]#[fg=white] #I #[fg=black]#[bg=blue] #W "
42 #Not sure what this does (this line of code below)
43 #setw -g window-status-content-attr bold,blink,reverse
44
45 bind -r C-k resize-pane -U
46 bind -r C-j resize-pane -D
47 bind -r C-h resize-pane -L
48 bind -r C-l resize-pane -R
49
50 bind -r k select-pane -U
51 bind -r j select-pane -D
52 bind -r h select-pane -L
53 bind -r l select-pane -R
54
55 unbind Up
56 unbind Down
57 unbind Left
58 unbind Right
59
60 unbind C-Up
61 unbind C-Down
62 unbind C-Left
63 unbind C-Right
64
65 # default bash, not zsh
66 #set-option -g default-shell /bin/bash
67 set-option -g default-shell /bin/zsh
68
69 # List of plugins
NORMAL +0 ~0 -0 ᚠ masterΙ† .tmux.conf tmux utf-8[unix] 92% ☰ 69/75 ㏑ : 1
# Tmux prefix...most people use Control-A
set-option -g prefix C-f
#No delay when hitting escape key
set -sg escape-time 0
#No or little delay in repeat time
set-option -g repeat-time 500
#Positon status bar on top of window
set-option -g status-position top
# Copy-paste integration
set-option -g default-command "reattach-to-user-namespace -l zsh"
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Mouse mode
set -g mouse on
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
# improve colors
set -g default-terminal 'screen-256color'
# increase scrollback lines
set -g history-limit 10000
#set -g status-right '#{battery_status_bg} Batt: #{battery_icon} #{battery_percentage} #{battery_remain} | %a %h-%d %H:%M '
set -g status-right ' Batt: #{battery_icon} #{battery_percentage} #{battery_remain} | %a %h-%d %H:%M '
set -g @batt_charged_icon "😎"
set -g @batt_charging_icon "πŸ‘"
set -g @batt_discharging_icon "πŸ‘Ž"
set -g @batt_attached_icon "😐"
# visualness
set -g status-fg red
set -g status-bg black
set -g pane-border-fg black
set -g pane-active-border-fg red
#Changes the color of the full status bar
setw -g window-status-format "#[fg=white]#[bg=black] #I: #[bg=black]#[fg=brightblack] #W "
setw -g window-status-current-format "#[bg=brightblack]#[fg=white] #I #[fg=black]#[bg=green] #W "
#Not sure what this does (this line of code below)
#setw -g window-status-content-attr bold,blink,reverse
bind -r C-k resize-pane -U
bind -r C-j resize-pane -D
bind -r C-h resize-pane -L
bind -r C-l resize-pane -R
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
unbind Up
unbind Down
unbind Left
unbind Right
unbind C-Up
unbind C-Down
unbind C-Left
unbind C-Right
# default bash, not zsh
#set-option -g default-shell /bin/bash
set-option -g default-shell /bin/zsh
# List of plugins
#set -g @plugin 'tmux-plugins/tpm'
#set -g @plugin 'tmux-plugins/tmux-sensible'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
#run '~/.tmux/plugins/tpm/tpm'
run-shell ~/.tmux/plugins/tmux-battery/battery.tmux
# Tmux prefix...most people use Control-A
set-option -g prefix C-f
#No delay when hitting escape key
set -sg escape-time 0
#No or little delay in repeat time
set-option -g repeat-time 500
set -g mouse on
# increase scrollback lines
set -g history-limit 10000
#Positon status bar on top of window
#set-option -g status-position top
# Use vim keybindings in copy mode
setw -g mode-keys vi
bind -r C-k resize-pane -U
bind -r C-j resize-pane -D
bind -r C-h resize-pane -L
bind -r C-l resize-pane -R
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
unbind Up
unbind Down
unbind Left
unbind Right
unbind C-Up
unbind C-Down
unbind C-Left
unbind C-Right
# themes and colors
# improve colors
#------------------------------------
# Layout and Theme
#------------------------------------
# Dracula Colours
# background_color '#282a36'
# current_line_color '#44475a'
# foreground_color '#f8f8f2'
# comment_color '#6272a4'
# cyan '#8be9fd'
# green # '#50fa7b'
# orange '#ffb86c'
# pink '#ff79c6'
# purple '#bd93f9'
# red '#ff5555'
# yellow '#f1fa8c'
set -g default-terminal "screen-256color"
# pane border
set -g pane-border-style fg='#bd93f9'
set -g pane-active-border-style fg='#ff79c6'
# message text
set -g message-style bg='#44475a',fg='#8be9fd'
set -g status-style bg='#44475a',fg='#bd93f9'
set -g status-interval 1
# status left
# are we controlling tmux or the content of the panes?
set -g status-left '#[bg=#f8f8f2]#[fg=#282a36]#{?client_prefix,#[bg=#ff79c6],} ☺ '
# are we zoomed into a pane?
set -ga status-left '#[bg=#44475a]#[fg=#ff79c6] #{?window_zoomed_flag, ↕ , }'
# window status
set-window-option -g window-status-style fg='#bd93f9',bg=default
set-window-option -g window-status-current-style fg='#ff79c6',bg='#282a36'
set -g window-status-current-format "#[fg=#44475a]#[bg=#bd93f9]#[fg=#f8f8f2]#[bg=#bd93f9] #I #W #[fg=#bd93f9]#[bg=#44475a]"
set -g window-status-format "#[fg=#f8f8f2]#[bg=#44475a]#I #W #[fg=#44475a] "
# status right
set -g status-right '#[fg=#8be9fd,bg=#44475a]#[fg=#44475a,bg=#8be9fd] #(tmux-mem-cpu-load -g 5 --interval 2) '
set -ga status-right '#[fg=#ff79c6,bg=#8be9fd]#[fg=#44475a,bg=#ff79c6] #(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") '
set -ga status-right '#[fg=#bd93f9,bg=#ff79c6]#[fg=#f8f8f2,bg=#bd93f9] %a %H:%M:%S #[fg=#6272a4]%Y-%m-%d '
#set -g default-terminal 'screen-256color'
#set -g status-bg black
#set -g status-fg white
#set-window-option -g window-status-current-fg red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment