Last active
March 17, 2020 14:02
-
-
Save SirJson/22eddcde065fa51da363099a8fd1d674 to your computer and use it in GitHub Desktop.
Extended oh-my-tmux local file with theming support. This revision implements Monokai colors and small improvements for the prefix marker.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/gpakosz/.tmux | |
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license, | |
# without any warranty. | |
# Copyright 2012— Gregory Pakosz (@gpakosz). | |
# -- color theme ---------------------------------------------------------------- | |
omt_theme_active='#86b42b' | |
omt_theme_msg_bg='#9d65ff' | |
omt_theme_border='#727072' | |
omt_theme_msg_fg='#fcfcfa' | |
omt_theme_status_bg='#2d2a2e' | |
omt_theme_status_fg='#fcfcfa' | |
omt_theme_pairing='#86b42b' | |
omt_theme_prefix='#fa8419' | |
omt_theme_root='#c4265e' | |
omt_theme_sync='#86b42b' | |
omt_theme_win_last='#98e024' | |
omt_theme_leftbg_a='#fcfcfa' | |
omt_theme_leftbg_b='#f4005f' | |
omt_theme_leftbg_c='#fc9867' | |
omt_theme_rightbg_a='#727072' | |
omt_theme_rightbg_b='#6a7ec8' | |
omt_theme_rightbg_c='#fa8419' | |
# -- windows & pane creation --------------------------------------------------- | |
tmux_conf_new_window_retain_current_path=false | |
tmux_conf_new_pane_retain_current_path=true | |
tmux_conf_new_pane_reconnect_ssh=true | |
tmux_conf_new_session_prompt=false | |
# -- display ------------------------------------------------------------------- | |
# RGB 24-bit colour support (tmux >= 2.2), possible values are: | |
# - true | |
# - false (default) | |
tmux_conf_theme_24b_colour=true | |
# window style | |
tmux_conf_theme_window_fg='default' | |
tmux_conf_theme_window_bg='default' | |
# high pane (tmux >= 2.1), possible values are: | |
# - true | |
# - false (default) | |
tmux_conf_theme_highlight_focused_pane=false | |
# pane border style, possible values are: | |
# - thin (default) | |
# - fat | |
tmux_conf_theme_pane_border_style=fat | |
# pane borders colours: | |
tmux_conf_theme_pane_border=$omt_theme_border | |
tmux_conf_theme_pane_active_border=$omt_theme_active | |
# pane indicator colours | |
tmux_conf_theme_pane_indicator=$omt_theme_active | |
tmux_conf_theme_pane_active_indicator=$omt_theme_active | |
# status line style | |
tmux_conf_theme_message_fg=$omt_theme_msg_fg | |
tmux_conf_theme_message_bg=$omt_theme_msg_bg | |
tmux_conf_theme_message_attr='bold' | |
# status line command style (<prefix> : Escape) | |
tmux_conf_theme_message_command_fg=$omt_theme_msg_bg | |
tmux_conf_theme_message_command_bg=$omt_theme_msg_fg | |
tmux_conf_theme_message_command_attr='bold' | |
# window modes style | |
tmux_conf_theme_mode_fg=$omt_theme_msg_fg | |
tmux_conf_theme_mode_bg=$omt_theme_msg_bg | |
tmux_conf_theme_mode_attr='bold' | |
# status line style | |
tmux_conf_theme_status_fg=$omt_theme_status_fg | |
tmux_conf_theme_status_bg=$omt_theme_status_bg | |
tmux_conf_theme_status_attr='none' | |
# terminal title | |
# - built-in variables are: | |
# - #{circled_window_index} | |
# - #{circled_session_name} | |
# - #{hostname} | |
# - #{hostname_ssh} | |
# - #{username} | |
# - #{username_ssh} | |
tmux_conf_theme_terminal_title='#h #S ● #I #W' | |
# window status style | |
# - built-in variables are: | |
# - #{circled_window_index} | |
# - #{circled_session_name} | |
# - #{hostname} | |
# - #{hostname_ssh} | |
# - #{username} | |
# - #{username_ssh} | |
tmux_conf_theme_window_status_fg=$omt_theme_status_fg | |
tmux_conf_theme_window_status_bg=$omt_theme_status_bg | |
tmux_conf_theme_window_status_attr='none' | |
tmux_conf_theme_window_status_format=' 缾#I #W ' | |
# window current status style | |
# - built-in variables are: | |
# - #{circled_window_index} | |
# - #{circled_session_name} | |
# - #{hostname} | |
# - #{hostname_ssh} | |
# - #{username} | |
# - #{username_ssh} | |
tmux_conf_theme_window_status_current_fg=$omt_theme_status_fg | |
tmux_conf_theme_window_status_current_bg=$omt_theme_active | |
tmux_conf_theme_window_status_current_attr='bold' | |
tmux_conf_theme_window_status_current_format='缾#I #W' | |
# window activity status style | |
tmux_conf_theme_window_status_activity_fg='default' | |
tmux_conf_theme_window_status_activity_bg='default' | |
tmux_conf_theme_window_status_activity_attr='underscore' | |
# window bell status style | |
tmux_conf_theme_window_status_bell_fg=$omt_theme_msg_bg | |
tmux_conf_theme_window_status_bell_bg='default' | |
tmux_conf_theme_window_status_bell_attr='blink,bold' | |
# window last status style | |
tmux_conf_theme_window_status_last_fg=$omt_theme_win_last | |
tmux_conf_theme_window_status_last_bg='default' | |
tmux_conf_theme_window_status_last_attr='none' | |
# status left/right sections separators | |
tmux_conf_theme_left_separator_main='\uE0B0' # /!\ you don't need to install Powerline | |
tmux_conf_theme_left_separator_sub='\uE0B1' # you only need fonts patched with | |
tmux_conf_theme_right_separator_main='\uE0B2' # Powerline symbols or the standalone | |
tmux_conf_theme_right_separator_sub='\uE0B3' # PowerlineSymbols.otf font, see README.md | |
# status left/right content: | |
# - separate main sections with '|' | |
# - separate subsections with ',' | |
# - built-in variables are: | |
# - #{battery_bar} | |
# - #{battery_hbar} | |
# - #{battery_percentage} | |
# - #{battery_status} | |
# - #{battery_vbar} | |
# - #{circled_session_name} | |
# - #{hostname_ssh} | |
# - #{hostname} | |
# - #{loadavg} | |
# - #{pairing} | |
# - #{prefix} | |
# - #{root} | |
# - #{synchronized} | |
# - #{uptime_y} | |
# - #{uptime_d} (modulo 365 when #{uptime_y} is used) | |
# - #{uptime_h} | |
# - #{uptime_m} | |
# - #{uptime_s} | |
# - #{username} | |
# - #{username_ssh} | |
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,} ' | |
tmux_conf_theme_status_right=' #{?pane_in_mode,,#{pairing}#{synchronized}#{prefix}} ﬦ , #{loadavg} , %R , %d %b | #{username}#{root} | #{hostname} ' | |
# status left style | |
tmux_conf_theme_status_left_fg='#{omt_theme_status_bg},#{omt_theme_status_fg},#{omt_theme_status_fg}' | |
tmux_conf_theme_status_left_bg='#{omt_theme_leftbg_a},#{omt_theme_leftbg_b},#{omt_theme_leftbg_c}' | |
tmux_conf_theme_status_left_attr='bold,none,none' | |
# status right style | |
tmux_conf_theme_status_right_fg='#{omt_theme_status_fg},#{omt_theme_status_fg},#{omt_theme_status_fg}' | |
tmux_conf_theme_status_right_bg='#{omt_theme_rightbg_a},#{omt_theme_rightbg_b},#{omt_theme_rightbg_c}' | |
tmux_conf_theme_status_right_attr='none,none,bold' | |
# pairing indicator | |
tmux_conf_theme_pairing=' 👓' # U+1F453 | |
tmux_conf_theme_pairing_fg='#{omt_theme_pairing}' | |
tmux_conf_theme_pairing_bg='none' | |
tmux_conf_theme_pairing_attr='none' | |
# prefix indicator | |
tmux_conf_theme_prefix='' # U+2328 | |
tmux_conf_theme_prefix_fg='#{omt_theme_prefix}' | |
tmux_conf_theme_prefix_bg='none' | |
tmux_conf_theme_prefix_attr='bold' | |
# root indicator | |
tmux_conf_theme_root='' | |
tmux_conf_theme_root_fg='#{omt_theme_root}' | |
tmux_conf_theme_root_bg='none' | |
tmux_conf_theme_root_attr='bold,blink' | |
# synchronized indicator | |
tmux_conf_theme_synchronized='痢' # U+1F512 | |
tmux_conf_theme_synchronized_fg='#{omt_theme_sync}' | |
tmux_conf_theme_synchronized_bg='none' | |
tmux_conf_theme_synchronized_attr='bold' | |
# battery bar symbols | |
tmux_conf_battery_bar_symbol_full='♥' | |
tmux_conf_battery_bar_symbol_empty='·' | |
# battery bar length (in number of symbols), possible values are: | |
# - auto | |
# - a number, e.g. 5 | |
tmux_conf_battery_bar_length='auto' | |
# battery bar palette, possible values are: | |
# - gradient (default) | |
# - heat | |
# - 'colour_full_fg,colour_empty_fg,colour_bg' | |
tmux_conf_battery_bar_palette='gradient' | |
# battery hbar palette, possible values are: | |
# - gradient (default) | |
# - heat | |
# - 'colour_low,colour_half,colour_full' | |
tmux_conf_battery_hbar_palette='gradient' | |
# battery vbar palette, possible values are: | |
# - gradient (default) | |
# - heat | |
# - 'colour_low,colour_half,colour_full' | |
tmux_conf_battery_vbar_palette='gradient' | |
# symbols used to indicate whether battery is charging or discharging | |
tmux_conf_battery_status_charging='⚡ ' # U+26A1 | |
tmux_conf_battery_status_charging='🔌 ' # U+1F50C | |
tmux_conf_battery_status_discharging='🔋 ' # U+1F50B | |
# clock style (when you hit <prefix> + t) | |
# you may want to use %I:%M %p in place of %R in tmux_conf_theme_status_right | |
tmux_conf_theme_clock_colour=$omt_theme_active | |
tmux_conf_theme_clock_style='24' | |
# -- clipboard ----------------------------------------------------------------- | |
# in copy mode, copying selection also copies to the OS clipboard | |
# - true | |
# - false (default) | |
# on macOS, this requires installing reattach-to-user-namespace, see README.md | |
# on Linux, this requires xsel or xclip | |
tmux_conf_copy_to_os_clipboard=false | |
# -- user customizations ------------------------------------------------------- | |
# this is the place to override or undo settings | |
# increase history size | |
set -g history-limit 10000 | |
# start with mouse mode enabled | |
#set -g mouse on | |
# force Vi mode | |
# really you should export VISUAL or EDITOR environment variable, see manual | |
set -g status-keys vi | |
set -g mode-keys vi | |
# move status line to top | |
#set -g status-position top | |
set -gu prefix2 | |
unbind C-a | |
unbind C-b | |
set -g prefix C-a | |
bind C-a send-prefix | |
unbind h | |
unbind v | |
bind-key h split-window -h | |
bind-key v split-window -v | |
# Use Alt+arrow keys without prefix key to switch panes | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D | |
# Shift arrow to switch windows | |
bind -n S-Left previous-window | |
bind -n S-Right next-window | |
# No delay for escape key press | |
set -sg escape-time 0 | |
# -- display ------------------------------------------------------------------- | |
set -g base-index 1 # start windows numbering at 1 | |
setw -g pane-base-index 1 # make pane numbering consistent with windows |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment