Advertisement
cirrus

.tmux.conf.local

Nov 30th, 2024
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 11.84 KB | None | 0 0
  1.  # -- windows & pane creation ---------------------------------------------------
  2.  
  3. # new window retains current path, possible values are:
  4. #   - true
  5. #   - false (default)
  6. tmux_conf_new_window_retain_current_path=false
  7.  
  8. # new pane retains current path, possible values are:
  9. #   - true (default)
  10. #   - false
  11. tmux_conf_new_pane_retain_current_path=true
  12.  
  13. # new pane tries to reconnect ssh sessions (experimental), possible values are:
  14. #   - true
  15. #   - false (default)
  16. tmux_conf_new_pane_reconnect_ssh=false
  17.  
  18. # prompt for session name when creating a new session, possible values are:
  19. #   - true
  20. #   - false (default)
  21. tmux_conf_new_session_prompt=true
  22.  
  23.  
  24. # -- display -------------------------------------------------------------------
  25.  
  26. # RGB 24-bit colour support (tmux >= 2.2), possible values are:
  27. #  - true
  28. #  - false (default)
  29. tmux_conf_theme_24b_colour=auto
  30.  
  31. # window style
  32. tmux_conf_theme_window_fg='default'
  33. tmux_conf_theme_window_bg='default'
  34.  
  35. # highlight focused pane (tmux >= 2.1), possible values are:
  36. #   - true
  37. #   - false (default)
  38. tmux_conf_theme_highlight_focused_pane=true
  39.  
  40. # focused pane colours:
  41. #tmux_conf_theme_focused_pane_fg='default'
  42. tmux_conf_theme_focused_pane_bg='#191919'       # black
  43.  
  44. # pane border style, possible values are:
  45. #   - thin (default)
  46. #   - fat
  47. tmux_conf_theme_pane_border_style=thin
  48.  
  49. # pane borders colours:
  50. tmux_conf_theme_pane_border='#444444'                   # gray
  51. tmux_conf_theme_pane_active_border='#00afff'            # light blue
  52.  
  53. # pane indicator colours
  54. tmux_conf_theme_pane_indicator='#00afff'                # light blue
  55. tmux_conf_theme_pane_active_indicator='#cb4b16'         # orange
  56.  
  57. # status line style
  58. tmux_conf_theme_message_fg='#00ffaa'                    # black
  59. tmux_conf_theme_message_bg='#171717'                    # orange
  60. tmux_conf_theme_message_attr='bold'
  61.  
  62. # status line command style (<prefix> : Escape)
  63. tmux_conf_theme_message_command_fg='#cb4b16'            # orange
  64. tmux_conf_theme_message_command_bg='#222222'            # black
  65. tmux_conf_theme_message_command_attr='bold'
  66.  
  67. # window modes style
  68. tmux_conf_theme_mode_fg='#222222'                       # black
  69. tmux_conf_theme_mode_bg='#00ffaa'                       # orange
  70. tmux_conf_theme_mode_attr='bold'
  71.  
  72. # status line style'#2aa198' '#cb4b16'
  73. tmux_conf_theme_status_fg='#2aa198'             # light gray
  74. tmux_conf_theme_status_bg='#222222'             # dark gray
  75. tmux_conf_theme_status_attr='bold'
  76.  
  77. # terminal title
  78. #   - built-in variables are:
  79. #     - #{circled_window_index}
  80. #     - #{circled_session_name}
  81. #     - #{hostname}
  82. #     - #{hostname_ssh}
  83. #     - #{username}
  84. #     - #{username_ssh}
  85. tmux_conf_theme_terminal_title='#h ❐ #S ● #I #W'
  86.  
  87. # window status style
  88. #   - built-in variables are:
  89. #     - #{circled_window_index}
  90. #     - #{circled_session_name}
  91. #     - #{hostname}
  92. #     - #{hostname_ssh}
  93. #     - #{username}
  94. #     - #{username_ssh}
  95. tmux_conf_theme_window_status_fg='#cb4b16'          # light gray
  96. tmux_conf_theme_window_status_bg='#222222'          # dark gray
  97. tmux_conf_theme_window_status_attr='none'
  98. tmux_conf_theme_window_status_format='#I:#W #F'
  99. #tmux_conf_theme_window_status_format='#{circled_window_index} #W'
  100. #tmux_conf_theme_window_status_format='#I #W#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}'
  101.  
  102. # window current 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_current_fg='#cb4b16'   # orange
  111. ##tmux_conf_theme_window_status_current_bg='#222222'    # black
  112. tmux_conf_theme_window_status_current_attr='bold'
  113. tmux_conf_theme_window_status_current_format='#I:#W #F'
  114. #tmux_conf_theme_window_status_current_format='#{circled_window_index} #W'
  115. #tmux_conf_theme_window_status_current_format='#I #W#{?window_zoomed_flag,🔍,}'
  116.  
  117. # window activity status style
  118. tmux_conf_theme_window_status_activity_fg='default'
  119. tmux_conf_theme_window_status_activity_bg='default'
  120. tmux_conf_theme_window_status_activity_attr='blink'
  121.  
  122. # window bell status style
  123. tmux_conf_theme_window_status_bell_fg='#ffff00'       # yellow
  124. tmux_conf_theme_window_status_bell_bg='default'
  125. tmux_conf_theme_window_status_bell_attr='blink,bold'
  126.  
  127. # window last status style
  128. tmux_conf_theme_window_status_last_fg='#00afff'    # light blue
  129. tmux_conf_theme_window_status_last_bg='default'
  130. tmux_conf_theme_window_status_last_attr='none'
  131.  
  132. # status left/right sections separators ❮ |
  133. #tmux_conf_theme_left_separator_main=''
  134. #tmux_conf_theme_left_separator_sub=''
  135. #tmux_conf_theme_right_separator_main=''
  136. #tmux_conf_theme_right_separator_sub=''
  137. tmux_conf_theme_left_separator_main='\uE0B0'  # /!\ you don't need to install Powerline
  138. tmux_conf_theme_left_separator_sub='\uE0B1'   #   you only need fonts patched with
  139. tmux_conf_theme_right_separator_main='\uE0B2' #   Powerline symbols or the standalone
  140. tmux_conf_theme_right_separator_sub='\uE0B3'  #   PowerlineSymbols.otf font, see README.md
  141.  
  142. # status left/right content:
  143. #   - separate main sections with '|'
  144. #   - separate subsections with ','
  145. #   - built-in variables are:
  146. #     - #{battery_bar}
  147. #     - #{battery_hbar}
  148. #     - #{battery_percentage}
  149. #     - #{battery_status}
  150. #     - #{battery_vbar}
  151. #     - #{circled_session_name}
  152. #     - #{hostname_ssh}
  153. #     - #{hostname}
  154. #     - #{loadavg}
  155. #     - #{pairing}
  156. #     - #{prefix}
  157. #     - #{root}
  158. #     - #{synchronized}
  159. #     - #{uptime_y}
  160. #     - #{uptime_d} (modulo 365 when #{uptime_y} is used)
  161. #     - #{uptime_h}
  162. #     - #{uptime_m}
  163. #     - #{uptime_s} ⬆ U+2B06 ⏫🐧
  164. #     - #{username} ⬆ U+2B06 🌞😈🔋🌱
  165. #     - #{username_ssh}
  166. tmux_conf_theme_status_left='#[fg=#5fff00,bg=black,dim] ⮝ [Tmux] #[fg=#15e681,bg=#483D8B]󰇚 #($HOME/.local/bin/net-speed.sh) 󰇚 |  A #{?uptime_h,#{uptime_h}h,}#[fg=black]#{?uptime_m,#{uptime_m}m,} | #[fg=black]   #{loadavg} | #[fg=#15e681]💥 ⛅ Glasgow.. #($HOME/scripts/weather.py "EUR|UK|UKXX0062|Glasgow"| sed -n 2p)'
  167. tmux_conf_theme_status_right='#{?battery_status,#{battery_status},},#{?battery_bar,#{battery_bar},}, #[fg=#00ffaa]#{?battery_percentage,#{battery_percentage},} ,#[fg=#5fff00] %R ,#[fg=#00ffaa] %d %b | #{username} | #{root} |#[fg=#5fff00] #{hostname}'
  168. # you may want to use %I:%M %p in place of %R
  169. # status left style
  170. tmux_conf_theme_status_left_fg='#171717,black,#e4e4e4'  # black, white , white
  171. tmux_conf_theme_status_left_bg='#222222,cyan,#00ffaa'  # yellow, pink, white blue
  172. tmux_conf_theme_status_left_attr='bold,none,none'
  173.  
  174. # status right style
  175. tmux_conf_theme_status_right_fg='#8a8a8a,#e4e4e4,#000000' # light gray, white, black
  176. tmux_conf_theme_status_right_bg='#080808,#d70000,#e4e4e4' # dark gray, red, white
  177. tmux_conf_theme_status_right_attr='none,none,bold'
  178.  
  179. # pairing indicator
  180. tmux_conf_theme_pairing='👓 '          # U+1F453
  181. tmux_conf_theme_pairing_fg='none'
  182. tmux_conf_theme_pairing_bg='none'
  183. tmux_conf_theme_pairing_attr='none'
  184.  
  185. # prefix indicator
  186. tmux_conf_theme_prefix='⌨ '            # U+2328
  187. tmux_conf_theme_prefix_fg='none'
  188. tmux_conf_theme_prefix_bg='none'
  189. tmux_conf_theme_prefix_attr='none'
  190.  
  191. # root indicator  ☠  #I
  192. tmux_conf_theme_root='⚠️'
  193. tmux_conf_theme_root_fg='none'
  194. tmux_conf_theme_root_bg='none'
  195. tmux_conf_theme_root_attr='bold,blink'
  196.  
  197. # synchronized indicator
  198. tmux_conf_theme_synchronized='🔒'     # U+1F512
  199. tmux_conf_theme_synchronized_fg='none'
  200. tmux_conf_theme_synchronized_bg='none'
  201. tmux_conf_theme_synchronized_attr='none'
  202.  
  203. # battery bar symbols
  204. tmux_conf_battery_bar_symbol_full='❮'
  205. tmux_conf_battery_bar_symbol_empty='❮'
  206. #tmux_conf_battery_bar_symbol_full='♥'
  207. #tmux_conf_battery_bar_symbol_empty='░❮'
  208.  
  209. # battery bar length (in number of symbols), possible values are:
  210. #   - auto
  211. #   - a number, e.g. 5
  212. tmux_conf_battery_bar_length='auto'
  213.  
  214. # battery bar palette, possible values are:
  215. #   - gradient (default)
  216. #   - heat
  217. #   - 'colour_full_fg,colour_empty_fg,colour_bg'
  218. tmux_conf_battery_bar_palette='heat'
  219. #tmux_conf_battery_bar_palette='#ff5f00,#5fff00,#191919'   # red, white, black
  220.  
  221. # battery hbar palette, possible values are:
  222. #   - gradient (default)
  223. #   - heat
  224. #   - 'colour_low,colour_half,colour_full'
  225. tmux_conf_battery_hbar_palette='gradient'
  226. #tmux_conf_battery_hbar_palette='#ff5f00,#5fff00,#222222'  # red, orange, green
  227.  
  228. # battery vbar palette, possible values are:
  229. #   - gradient (default)
  230. #   - heat
  231. #   - 'colour_low,colour_half,colour_full'
  232. #tmux_conf_battery_vbar_palette='heat'
  233. tmux_conf_battery_vbar_palette='#d70000,#ff5f00,#222222'  # red, orange, green
  234.  
  235. # symbols used to indicate whether battery is charging or discharging
  236. #tmux_conf_battery_status_charging='''       # U+2191
  237. #tmux_conf_battery_status_discharging='⏬🔌'    # U+2193
  238. tmux_conf_battery_status_charging='⚡'    # U+26A1
  239. #tmux_conf_battery_status_charging='🔌🔋 '    # U+1F50C
  240. tmux_conf_battery_status_discharging='🔌 ' # U+1F50B
  241.  
  242. # clock style (when you hit <prefix> + t)
  243. # you may want to use %I:%M %p in place of %R in tmux_conf_theme_status_right
  244. tmux_conf_theme_clock_colour='#00afff'  # light blue
  245. tmux_conf_theme_clock_style='24'
  246.  
  247. #external scripts
  248. #-----------------------------------------------------
  249.   #   run-shell ~/scripts/tmux-open/open.tmux
  250.     run-shell ~/scripts/tmux-fzf-url/fzf-url.tmux
  251.  #   run-shell ~/scripts/tmux-urlscan/urlscan.tmux
  252.    #  run-shell ~/scripts/tmux-urlview/urlview.tmux
  253.   #   run-shell ~/scripts/tmux-power/tmux-power.tmux
  254. # EOF
  255.  
  256. # -- clipboard -----------------------------------------------------------------
  257.  
  258. # in copy mode, copying selection also copies to the OS clipboard
  259. #   - true
  260. #   - false (default)
  261. # on macOS, this requires installing reattach-to-user-namespace, see README.md
  262. # on Linux, this requires xsel or xclip
  263. tmux_conf_copy_to_os_clipboard=true
  264.  
  265.  
  266. # -- user customizations -------------------------------------------------------
  267. # this is the place to override or undo settings
  268.     set -g status-justify centre
  269.     set -ag terminal-overrides ',st-*:Tc'
  270.     set -ag terminal-overrides ',xterm-*:termite:Tc'
  271. #set-window-option -g window-status-format#[fg=colour172]'#I:#W#F'
  272. #set-window-option -g window-status-current-format '#I:#W#F'
  273. set-option -g update-environment 'DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY DBUS_SESSION_BUS_ADDRESS'
  274. bind-key k new-window -n "Bunnies" '$SHELL -c "fkill" \; display "your a tube"'
  275. bind-key U new-window -n "URL" '$SHELL -c "fzfurl" \; display "you are ell"
  276. # urlscan as context and url view
  277.   # bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; \
  278.    new-window -n "urlscan" '$SHELL -c "urlscan  < /tmp/tmux-buffer"'
  279. # set -g @tmux_power_theme 'moon'
  280.  #  bind-key U capture-pane \; save-buffer /tmp/tmux-buffer \; \
  281.    new-window -n "urlview" '$SHELL -c "urlview  < /tmp/tmux-buffer"'
  282. # increase history size
  283. #set -g history-limit 10000
  284. # reload configuration
  285. bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced'
  286.  
  287.    bind n select-pane -L           # move cursor to left
  288.    bind j select-pane -D           # move cursor to below
  289.    bind k select-pane -U           # move cursor to above
  290.    bind p select-pane -R           # move cursor to right
  291.    bind H resize-pane -L 5         # resize 5 units to left
  292. # start with mouse mode enabled
  293. set -g mouse on
  294.  
  295. # force Vi mode
  296. #   really you should export VISUAL or EDITOR environment variable, see manual
  297. #set -g status-keys vi
  298. #set -g mode-keys vi
  299. set -g status-left "#[fg=yellow,dim][tmux]: #(~/.local/bin/net-speed.sh left)#[default]"
  300. # replace C-b by C-a instead of using both prefixes
  301. # set -gu prefix2
  302. # unbind C-a
  303. # unbind C-b
  304. # set -g prefix C-a
  305. # bind C-a send-prefix
  306.  
  307. # move status line to top
  308. #set -g status-position top
  309. ##(cat  /home/cirrus/.cache/i3blocks/notification  | grep BODY | cut -c 6- )
  310.  
Tags: tmux
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement