Guest User

Untitled

a guest
Sep 26th, 2020
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.18 KB | None | 0 0
  1. # https://github.com/gpakosz/.tmux
  2. # (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
  3. # without any warranty.
  4. # Copyright 2012— Gregory Pakosz (@gpakosz).
  5.  
  6. # -- navigation ----------------------------------------------------------------
  7.  
  8. # if you're running tmux within iTerm2
  9. # - and tmux is 1.9 or 1.9a
  10. # - and iTerm2 is configured to let option key act as +Esc
  11. # - and iTerm2 is configured to send [1;9A -> [1;9D for option + arrow keys
  12. # then uncomment the following line to make Meta + arrow keys mapping work
  13. #set -ga terminal-overrides "*:kUP3=\e[1;9A,*:kDN3=\e[1;9B,*:kRIT3=\e[1;9C,*:kLFT3=\e[1;9D"
  14.  
  15.  
  16. # -- windows & pane creation ---------------------------------------------------
  17.  
  18. # new window retains current path, possible values are:
  19. # - true
  20. # - false (default)
  21. tmux_conf_new_window_retain_current_path=false
  22.  
  23. # new pane retains current path, possible values are:
  24. # - true (default)
  25. # - false
  26. tmux_conf_new_pane_retain_current_path=true
  27.  
  28. # new pane tries to reconnect ssh sessions (experimental), possible values are:
  29. # - true
  30. # - false (default)
  31. tmux_conf_new_pane_reconnect_ssh=false
  32.  
  33. # prompt for session name when creating a new session, possible values are:
  34. # - true
  35. # - false (default)
  36. tmux_conf_new_session_prompt=false
  37.  
  38.  
  39. # -- display -------------------------------------------------------------------
  40.  
  41. # RGB 24-bit colour support (tmux >= 2.2), possible values are:
  42. # - true
  43. # - false (default)
  44. tmux_conf_theme_24b_colour=false
  45.  
  46. # window style
  47. tmux_conf_theme_window_fg='default'
  48. tmux_conf_theme_window_bg='default'
  49.  
  50. # highlight focused pane (tmux >= 2.1), possible values are:
  51. # - true
  52. # - false (default)
  53. tmux_conf_theme_highlight_focused_pane=false
  54.  
  55. # focused pane colours:
  56. tmux_conf_theme_focused_pane_fg='default'
  57. tmux_conf_theme_focused_pane_bg='#e64a19' # md deep orange 700
  58.  
  59. # pane border style, possible values are:
  60. # - thin (default)
  61. # - fat
  62. tmux_conf_theme_pane_border_style=thin
  63.  
  64. # pane borders colours:
  65. tmux_conf_theme_pane_border='#757575' # md gray 700
  66. tmux_conf_theme_pane_active_border='#ffeb3b' # md yellow 500
  67.  
  68. # pane indicator colours
  69. tmux_conf_theme_pane_indicator='#ffeb3b' # md yellow 500
  70. tmux_conf_theme_pane_active_indicator='#ffeb3b' # md yellow 500
  71.  
  72. # status line style
  73. tmux_conf_theme_message_fg='#212121' # md gray 900
  74. tmux_conf_theme_message_bg='#ffeb3b' # md yellow 500
  75. tmux_conf_theme_message_attr='bold'
  76.  
  77. # status line command style (<prefix> : Escape)
  78. tmux_conf_theme_message_command_fg='#ffeb3b' # md yellow 500
  79. tmux_conf_theme_message_command_bg='#212121' # md gray 900
  80. tmux_conf_theme_message_command_attr='bold'
  81.  
  82. # window modes style
  83. tmux_conf_theme_mode_fg='#212121' # md gray 900
  84. tmux_conf_theme_mode_bg='#ffeb3b' # md yellow 500
  85. tmux_conf_theme_mode_attr='bold'
  86.  
  87. # status line style
  88. tmux_conf_theme_status_fg='#9e9e9e' # md gray 500
  89. tmux_conf_theme_status_bg='#212121' # md gray 900
  90. tmux_conf_theme_status_attr='none'
  91.  
  92. # terminal title
  93. # - built-in variables are:
  94. # - #{circled_window_index}
  95. # - #{circled_session_name}
  96. # - #{hostname}
  97. # - #{hostname_ssh}
  98. # - #{username}
  99. # - #{username_ssh}
  100. tmux_conf_theme_terminal_title='#h | #S, W: #I | N: #W, T: #T'
  101.  
  102. # window status style
  103. # - built-in variables are:
  104. # - #{circled_window_index}
  105. # - #{circled_session_name}
  106. # - #{hostname}
  107. # - #{hostname_ssh}
  108. # - #{username}
  109. # - #{username_ssh}
  110. tmux_conf_theme_window_status_fg='#9e9e9e' # md gray 500
  111. tmux_conf_theme_window_status_bg='#212121' # md gray 900
  112. tmux_conf_theme_window_status_attr='none'
  113. tmux_conf_theme_window_status_format='#I #W'
  114. #tmux_conf_theme_window_status_format='#{circled_window_index} #W'
  115. #tmux_conf_theme_window_status_format='#I #W#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}'
  116.  
  117. # window current status style
  118. # - built-in variables are:
  119. # - #{circled_window_index}
  120. # - #{circled_session_name}
  121. # - #{hostname}
  122. # - #{hostname_ssh}
  123. # - #{username}
  124. # - #{username_ssh}
  125. tmux_conf_theme_window_status_current_fg='#212121' # md gray 900
  126. tmux_conf_theme_window_status_current_bg='#ff5722' # md deep orange 500
  127. tmux_conf_theme_window_status_current_attr='bold'
  128. tmux_conf_theme_window_status_current_format='#I #W'
  129. #tmux_conf_theme_window_status_current_format='#{circled_window_index} #W'
  130. #tmux_conf_theme_window_status_current_format='#I #W#{?window_zoomed_flag,🔍,}'
  131.  
  132. # window activity status style
  133. tmux_conf_theme_window_status_activity_fg='default'
  134. tmux_conf_theme_window_status_activity_bg='default'
  135. tmux_conf_theme_window_status_activity_attr='underscore'
  136.  
  137. # window bell status style
  138. tmux_conf_theme_window_status_bell_fg='#ffeb3b' # md yellow 500
  139. tmux_conf_theme_window_status_bell_bg='default'
  140. tmux_conf_theme_window_status_bell_attr='blink,bold'
  141.  
  142. # window last status style
  143. tmux_conf_theme_window_status_last_fg='#ff5722' # md deep orange 500
  144. tmux_conf_theme_window_status_last_bg='default'
  145. tmux_conf_theme_window_status_last_attr='none'
  146.  
  147. # status left/right sections separators
  148. #tmux_conf_theme_left_separator_main=''
  149. #tmux_conf_theme_left_separator_sub='|'
  150. #tmux_conf_theme_right_separator_main=''
  151. #tmux_conf_theme_right_separator_sub='|'
  152. tmux_conf_theme_left_separator_main='\uE0B0' # /!\ you don't need to install Powerline
  153. tmux_conf_theme_left_separator_sub='\uE0B1' # you only need fonts patched with
  154. tmux_conf_theme_right_separator_main='\uE0B2' # Powerline symbols or the standalone
  155. tmux_conf_theme_right_separator_sub='\uE0B3' # PowerlineSymbols.otf font, see README.md
  156.  
  157. # status left/right content:
  158. # - separate main sections with '|'
  159. # - separate subsections with ','
  160. # - built-in variables are:
  161. # - #{battery_bar}
  162. # - #{battery_hbar}
  163. # - #{battery_percentage}
  164. # - #{battery_status}
  165. # - #{battery_vbar}
  166. # - #{circled_session_name}
  167. # - #{hostname_ssh}
  168. # - #{hostname}
  169. # - #{loadavg}
  170. # - #{pairing}
  171. # - #{prefix}
  172. # - #{root}
  173. # - #{synchronized}
  174. # - #{uptime_y}
  175. # - #{uptime_d} (modulo 365 when #{uptime_y} is used)
  176. # - #{uptime_h}
  177. # - #{uptime_m}
  178. # - #{uptime_s}
  179. # - #{username}
  180. # - #{username_ssh}
  181. tmux_conf_theme_status_left=' ❐ #S | ↑#{?uptime_y, #{uptime_y}y,}#{?uptime_d, #{uptime_d}d,}#{?uptime_h, #{uptime_h}h,}#{?uptime_m, #{uptime_m}m,} '
  182. tmux_conf_theme_status_right=' #{prefix}#{pairing}#{synchronized} #{network_speed} , CPU: #{sysstat_cpu_chart} , MEM: #{sysstat_mem} , %H:%M %m/%d/%y | #{username}#{root} | #{hostname} '
  183.  
  184. # status left style
  185. tmux_conf_theme_status_left_fg='#212121,#212121,#eeeeee' # md gray 900, md gray 900, md gray 200
  186. tmux_conf_theme_status_left_bg='#ffeb3b,#f44336,#ff5722' # md yellow 500, md red 500, md deep orange 500
  187. tmux_conf_theme_status_left_attr='bold,none,none'
  188.  
  189. # status right style
  190. tmux_conf_theme_status_right_fg='#e0e0e0,#212121,#212121' # md gray 300, md gray 900, md gray 900
  191. tmux_conf_theme_status_right_bg='#212121,#f44336,#ff8a65' # md gray 900, md red 500, md deep orange 300
  192. tmux_conf_theme_status_right_attr='none,none,bold'
  193.  
  194. # pairing indicator
  195. tmux_conf_theme_pairing='👓 ' # U+1F453
  196. tmux_conf_theme_pairing_fg='none'
  197. tmux_conf_theme_pairing_bg='none'
  198. tmux_conf_theme_pairing_attr='none'
  199.  
  200. # prefix indicator
  201. tmux_conf_theme_prefix='⌨ ' # U+2328
  202. tmux_conf_theme_prefix_fg='none'
  203. tmux_conf_theme_prefix_bg='none'
  204. tmux_conf_theme_prefix_attr='none'
  205.  
  206. # root indicator
  207. tmux_conf_theme_root='!'
  208. tmux_conf_theme_root_fg='none'
  209. tmux_conf_theme_root_bg='none'
  210. tmux_conf_theme_root_attr='bold,blink'
  211.  
  212. # synchronized indicator
  213. tmux_conf_theme_synchronized='🔒' # U+1F512
  214. tmux_conf_theme_synchronized_fg='none'
  215. tmux_conf_theme_synchronized_bg='none'
  216. tmux_conf_theme_synchronized_attr='none'
  217.  
  218. # battery bar symbols
  219. tmux_conf_battery_bar_symbol_full='◼'
  220. tmux_conf_battery_bar_symbol_empty='◻'
  221. #tmux_conf_battery_bar_symbol_full='♥'
  222. #tmux_conf_battery_bar_symbol_empty='·'
  223.  
  224. # battery bar length (in number of symbols), possible values are:
  225. # - auto
  226. # - a number, e.g. 5
  227. tmux_conf_battery_bar_length='auto'
  228.  
  229. # battery bar palette, possible values are:
  230. # - gradient (default)
  231. # - heat
  232. # - 'colour_full_fg,colour_empty_fg,colour_bg'
  233. tmux_conf_battery_bar_palette='gradient'
  234. #tmux_conf_battery_bar_palette='#d70000,#e4e4e4,#000000' # red, white, black
  235.  
  236. # battery hbar palette, possible values are:
  237. # - gradient (default)
  238. # - heat
  239. # - 'colour_low,colour_half,colour_full'
  240. tmux_conf_battery_hbar_palette='gradient'
  241. #tmux_conf_battery_hbar_palette='#d70000,#ff5f00,#5fff00' # red, orange, green
  242.  
  243. # battery vbar palette, possible values are:
  244. # - gradient (default)
  245. # - heat
  246. # - 'colour_low,colour_half,colour_full'
  247. tmux_conf_battery_vbar_palette='gradient'
  248. #tmux_conf_battery_vbar_palette='#d70000,#ff5f00,#5fff00' # red, orange, green
  249.  
  250. # symbols used to indicate whether battery is charging or discharging
  251. tmux_conf_battery_status_charging='↑' # U+2191
  252. tmux_conf_battery_status_discharging='↓' # U+2193
  253. #tmux_conf_battery_status_charging='🔌' # U+1F50C
  254. #tmux_conf_battery_status_discharging='🔋' # U+1F50B
  255.  
  256. # clock style (when you hit <prefix> + t)
  257. # you may want to use %I:%M %p in place of %R in tmux_conf_theme_status_right
  258. tmux_conf_theme_clock_colour='#ff5722' # md deep orange 500
  259. tmux_conf_theme_clock_style='24'
  260.  
  261.  
  262. # -- clipboard -----------------------------------------------------------------
  263.  
  264. # in copy mode, copying selection also copies to the OS clipboard
  265. # - true
  266. # - false (default)
  267. # on macOS, this requires installing reattach-to-user-namespace, see README.md
  268. # on Linux, this requires xsel or xclip
  269. tmux_conf_copy_to_os_clipboard=false
  270.  
  271.  
  272. # -- user customizations -------------------------------------------------------
  273. # this is the place to override or undo settings
  274.  
  275. # increase history size
  276. #set -g history-limit 10000
  277.  
  278. # start with mouse mode enabled
  279. set -g mouse on
  280.  
  281. # force Vi mode
  282. # really you should export VISUAL or EDITOR environment variable, see manual
  283. #set -g status-keys vi
  284. #set -g mode-keys vi
  285.  
  286. # replace C-b by C-a instead of using both prefixes
  287. # set -gu prefix2
  288. # unbind C-a
  289. # unbind C-b
  290. # set -g prefix C-a
  291. # bind C-a send-prefix
  292.  
  293. # move status line to top
  294. #set -g status-position top
  295.  
  296. set -g pane-border-status top
  297.  
  298. set -g @cpu_chart_with_percent '1'
  299. set -g @cpu_chart_bg '#212121'
  300. #set -g @sysstat_mem_view_tmpl '#[fg=#{green}]#{mem.pused}#[default] #[fg=#{green}]#{mem.used}#[default]'
  301.  
  302. set -g status-interval 3
  303.  
  304. bind C-Y set-window-option synchronize-panes
  305.  
  306. # -- plugins -------------------------------------------------------------------
  307.  
  308. # List of plugins
  309. set -g @tpm_plugins ' \
  310. matln/tmux-plugin-sysstat \
  311. tmux-plugins/tmux-resurrect \
  312. tmux-plugins/tmux-sensible \
  313. tmux-plugins/tpm \
  314. '
  315.  
  316. # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
  317. run '~/.tmux/plugins/tpm/tpm'
  318.  
Add Comment
Please, Sign In to add comment