Guest User

Untitled

a guest
Mar 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. # Tmux prefix...most people use Control-A
  2. set-option -g prefix C-f
  3.  
  4. #No delay when hitting escape key
  5. set -sg escape-time 0
  6.  
  7. #No or little delay in repeat time
  8. set-option -g repeat-time 500
  9.  
  10. #Positon status bar on top of window
  11. set-option -g status-position top
  12.  
  13.  
  14. # Copy-paste integration
  15. set-option -g default-command "reattach-to-user-namespace -l zsh"
  16.  
  17. # Use vim keybindings in copy mode
  18. setw -g mode-keys vi
  19.  
  20.  
  21. # Mouse mode
  22. set -g mouse on
  23. 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'"
  24. bind -n WheelDownPane select-pane -t= \; send-keys -M
  25.  
  26. # improve colors
  27. set -g default-terminal 'screen-256color'
  28.  
  29. # increase scrollback lines
  30. set -g history-limit 10000
  31.  
  32. #set -g status-right '#{battery_status_bg} Batt: #{battery_icon} #{battery_percentage} #{battery_remain} | %a %h-%d %H:%M '
  33. set -g status-right ' Batt: #{battery_icon} #{battery_percentage} #{battery_remain} | %a %h-%d %H:%M '
  34. set -g @batt_charged_icon "😎"
  35. set -g @batt_charging_icon "👍"
  36. set -g @batt_discharging_icon "👎"
  37. set -g @batt_attached_icon "😐"
  38.  
  39. # visualness
  40. set -g status-fg red
  41. set -g status-bg black
  42. set -g pane-border-fg black
  43. set -g pane-active-border-fg red
  44.  
  45. #Changes the color of the full status bar
  46. setw -g window-status-format "#[fg=white]#[bg=black] #I: #[bg=black]#[fg=brightblack] #W "
  47. setw -g window-status-current-format "#[bg=brightblack]#[fg=white] #I #[fg=black]#[bg=green] #W "
  48. #Not sure what this does (this line of code below)
  49. #setw -g window-status-content-attr bold,blink,reverse
  50.  
  51. bind -r C-k resize-pane -U
  52. bind -r C-j resize-pane -D
  53. bind -r C-h resize-pane -L
  54. bind -r C-l resize-pane -R
  55.  
  56. bind -r k select-pane -U
  57. bind -r j select-pane -D
  58. bind -r h select-pane -L
  59. bind -r l select-pane -R
  60.  
  61. unbind Up
  62. unbind Down
  63. unbind Left
  64. unbind Right
  65.  
  66. unbind C-Up
  67. unbind C-Down
  68. unbind C-Left
  69. unbind C-Right
  70.  
  71. # default bash, not zsh
  72. #set-option -g default-shell /bin/bash
  73. set-option -g default-shell /bin/zsh
  74.  
  75. # List of plugins
  76. #set -g @plugin 'tmux-plugins/tpm'
  77. #set -g @plugin 'tmux-plugins/tmux-sensible'
  78.  
  79. # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
  80. #run '~/.tmux/plugins/tpm/tpm'
  81. run-shell ~/.tmux/plugins/tmux-battery/battery.tmux
Add Comment
Please, Sign In to add comment