Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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
Add Comment
Please, Sign In to add comment