Skip to content

Instantly share code, notes, and snippets.

@adrianvalenz
Last active October 21, 2023 02:02
Show Gist options
  • Save adrianvalenz/17917d024fe074170b4915e93a6b5c41 to your computer and use it in GitHub Desktop.
Save adrianvalenz/17917d024fe074170b4915e93a6b5c41 to your computer and use it in GitHub Desktop.

Revisions

  1. adrianvalenz revised this gist Oct 21, 2023. 1 changed file with 89 additions and 0 deletions.
    89 changes: 89 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -206,4 +206,93 @@ set -g @plugin "arcticicestudio/nord-tmux"
    # initialize plugin manager
    run '~/.tmux/plugins/tpm/tpm'

    # " black #171d23 235 #262626 Grey15
    # " brblack #41505e 239 #708090 SlateGray
    # " white #b7c5d3 254 #b0c4de LightSteelBlue
    # " brwhite #ffffff 244 #ffffff White
    # " cyan #008b94 30 #008787 Turquoise4
    # " brcyan #70e1e8 80 #5fd7d7 MediumTurquoise
    # " blue #539afc 69 #5f87ff CornflowerBlue
    # " brblue #5ec4ff 81 #87cefa LightSkyBlue
    # " red #ee3a43 9 #ff0000 Red
    # " brred #d95468 211 #ff87af PaleVioletRed1
    # " magenta #b62d65 125 #af005f DeepPink4
    # " brmagenta #e27e8d 204 #db7093 PaleVioletRed
    # " yellow #d98e48 172 #cd853f Peru/Orange3
    # " bryellow #ebbf83 180 #deb887 BurlyWood/Tan
    # " green #8bd49c 119 #90ee90 LightGreen
    # " brgreen #3ad900 82 #7cfc00 LawnGreen/Chartreuse2

    # Citylights colors for Tmux
    # set -g mode-style "fg=#41505e,bg=#008b94"
    #
    # set -g message-style "fg=#41505e,bg=#008b94"
    # set -g message-command-style "fg=#41505e,bg=#008b94"
    #
    # set -g pane-border-style "fg=#008b94"
    # set -g pane-active-border-style "fg=#41505e"
    #
    # set -g status "on"
    # set -g status-justify "left"
    #
    # set -g status-style "fg=#41505e,bg=#171d23"
    #
    # set -g status-left-length "100"
    # set -g status-right-length "100"
    #
    # set -g status-left-style NONE
    # set -g status-right-style NONE
    #
    # set -g status-left "#[fg=#16161D,bg=#41505e,bold] #S #[fg=#41505e,bg=#171d23,nobold,nounderscore,noitalics]"
    # set -g status-right "#[fg=#171d23,bg=#171d23,nobold,nounderscore,noitalics]#[fg=#41505e,bg=#171d23] #{prefix_highlight} #[fg=#008b94,bg=#171d23,nobold,nounderscore,noitalics]#[fg=#41505e,bg=#008b94] %Y-%m-%d  %I:%M %p #[fg=#41505e,bg=#008b94,nobold,nounderscore,noitalics]#[fg=#16161D,bg=#41505e,bold] #h "
    # if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" == "24" ]' {
    # set -g status-right "#[fg=#171d23,bg=#171d23,nobold,nounderscore,noitalics]#[fg=#41505e,bg=#171d23] #{prefix_highlight} #[fg=#008b94,bg=#171d23,nobold,nounderscore,noitalics]#[fg=#41505e,bg=#008b94] %Y-%m-%d  %H:%M #[fg=#41505e,bg=#008b94,nobold,nounderscore,noitalics]#[fg=#16161D,bg=#41505e,bold] #h "
    # }
    #
    # setw -g window-status-activity-style "underscore,fg=#7FB4CA,bg=#171d23"
    # setw -g window-status-separator ""
    # setw -g window-status-style "NONE,fg=#7FB4CA,bg=#171d23"
    # setw -g window-status-format "#[fg=#171d23,bg=#171d23,nobold,nounderscore,noitalics]#[default] #I  #W #F #[fg=#171d23,bg=#171d23,nobold,nounderscore,noitalics]"
    # setw -g window-status-current-format "#[fg=#171d23,bg=#008b94,nobold,nounderscore,noitalics]#[fg=#41505e,bg=#008b94,bold] #I  #W #F #[fg=#008b94,bg=#171d23,nobold,nounderscore,noitalics]"
    #
    # # tmux-plugins/tmux-prefix-highlight support
    # set -g @prefix_highlight_output_prefix "#[fg=#d95468]#[bg=#171d23]#[fg=#171d23]#[bg=#d95468]"
    # set -g @prefix_highlight_output_suffix ""

    # Kanagawa colors for Tmux

    set -g mode-style "fg=#658594,bg=#2D4F67"

    set -g message-style "fg=#658594,bg=#2D4F67"
    set -g message-command-style "fg=#658594,bg=#2D4F67"

    set -g pane-border-style "fg=#2D4F67"
    set -g pane-active-border-style "fg=#658594"

    set -g status "on"
    set -g status-justify "left"

    set -g status-style "fg=#658594,bg=#1F1F28"

    set -g status-left-length "100"
    set -g status-right-length "100"

    set -g status-left-style NONE
    set -g status-right-style NONE

    set -g status-left "#[fg=#16161D,bg=#658594,bold] #S #[fg=#658594,bg=#1F1F28,nobold,nounderscore,noitalics]"
    set -g status-right "#[fg=#1F1F28,bg=#1F1F28,nobold,nounderscore,noitalics]#[fg=#658594,bg=#1F1F28] #{prefix_highlight} #[fg=#2D4F67,bg=#1F1F28,nobold,nounderscore,noitalics]#[fg=#658594,bg=#2D4F67] %Y-%m-%d  %I:%M %p #[fg=#658594,bg=#2D4F67,nobold,nounderscore,noitalics]#[fg=#16161D,bg=#658594,bold] #h "
    if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" == "24" ]' {
    set -g status-right "#[fg=#1F1F28,bg=#1F1F28,nobold,nounderscore,noitalics]#[fg=#658594,bg=#1F1F28] #{prefix_highlight} #[fg=#2D4F67,bg=#1F1F28,nobold,nounderscore,noitalics]#[fg=#658594,bg=#2D4F67] %Y-%m-%d  %H:%M #[fg=#658594,bg=#2D4F67,nobold,nounderscore,noitalics]#[fg=#16161D,bg=#658594,bold] #h "
    }

    setw -g window-status-activity-style "underscore,fg=#7FB4CA,bg=#1F1F28"
    setw -g window-status-separator ""
    setw -g window-status-style "NONE,fg=#7FB4CA,bg=#1F1F28"
    setw -g window-status-format "#[fg=#1F1F28,bg=#1F1F28,nobold,nounderscore,noitalics]#[default] #I  #W #F #[fg=#1F1F28,bg=#1F1F28,nobold,nounderscore,noitalics]"
    setw -g window-status-current-format "#[fg=#1F1F28,bg=#2D4F67,nobold,nounderscore,noitalics]#[fg=#658594,bg=#2D4F67,bold] #I  #W #F #[fg=#2D4F67,bg=#1F1F28,nobold,nounderscore,noitalics]"

    # tmux-plugins/tmux-prefix-highlight support
    set -g @prefix_highlight_output_prefix "#[fg=#FF9E3B]#[bg=#1F1F28]#[fg=#1F1F28]#[bg=#FF9E3B]"
    set -g @prefix_highlight_output_suffix ""

  2. adrianvalenz revised this gist Oct 19, 2023. 1 changed file with 47 additions and 0 deletions.
    47 changes: 47 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -154,6 +154,53 @@ set -g @plugin "arcticicestudio/nord-tmux"
    # # setw -g window-status-current-format "#[fg=#e27878,bg=#1E2132,nobold,nounderscore,noitalics]$separator_right#[fg=#161821,bg=#e27878] #I $subseparator_right #W $subseparator_left #F #[fg=#e27878,bg=#1e2132,nobold,nounderscore,noitalics]$separator_left"
    # setw -g window-status-current-format "#[bg=#454b68,fg=#1E2132,nobold,nounderscore,noitalics]$current_separator_right#[fg=#c6c8d1,bg=#454b68] #I $subseparator_right #W $subseparator_left #F #[fg=#454b68,bg=#1e2132,nobold,nounderscore,noitalics]$current_separator_left"

    # Nord theme
    # set -g @plugin "arcticicestudio/nord-tmux"

    # FILE: iceberg.tmux.conf
    # REPO: https://github.com/gkeep/iceberg-dark
    # MAINTAINER: gkeep <[email protected]>

    # set -g status-justify "left"
    # set -g status "on"
    # set -g status-left-style "none"
    # set -g message-command-style "fg=#c6c8d1,bg=#2e3244"
    # set -g status-right-style "none"
    # set -g pane-active-border-style "fg=#454b68"
    # set -g status-style "none,bg=#1e2132"
    # set -g message-style "fg=#c6c8d1,bg=#2e3244"
    # set -g pane-border-style "fg=#2e3244"
    # set -g status-right-length "100"
    # set -g status-left-length "100"
    # setw -g window-status-activity-style "none,fg=#454b68,bg=#1e2132"
    # setw -g window-status-separator ""
    # setw -g window-status-style "none,fg=#c6c8d1,bg=#1e2132"
    #
    # # modules
    # module_left_1="#(whoami)"
    # module_left_2="%R %a"
    #
    # module_right_1="#(ip route get 1 | awk '{print $7}')"
    # module_right_2="#H"
    #
    # # separators
    # separator_left=""
    # separator_right=""
    # # separator_left=""
    # # separator_right=""
    #
    # current_separator_left=""
    # current_separator_right=""
    #
    # subseparator_left=""
    # subseparator_right=""
    #
    # set -g status-left "#[fg=#c6c8d1,bg=#454b68,bold] $module_left_1 #[fg=#454b68,bg=#2e3244,nobold,nounderscore,noitalics]$separator_left#[fg=#c6c8d1,bg=#2e3244] $module_left_2 #[fg=#2e3244,bg=#1e2132,nobold,nounderscore,noitalics]$separator_left#[fg=#c6c8d1,bg=#1e2132] #[fg=#1e2132,bg=#1e2132,nobold,nounderscore,noitalics]$separator_left"
    # # set -g status-left "#[fg=#1e2132,bg=#e27878,bold] $module_left_1 #[fg=#e27878,bg=#2e3244,nobold,nounderscore,noitalics]$separator_left#[fg=#c6c8d1,bg=#2e3244] $module_left_2 #[fg=#2e3244,bg=#1e2132,nobold,nounderscore,noitalics]$separator_left#[fg=#c6c8d1,bg=#1e2132] #[fg=#1e2132,bg=#1e2132,nobold,nounderscore,noitalics]$separator_left"
    # set -g status-right "#[fg=#1e2132,bg=#1e2132,nobold,nounderscore,noitalics]$separator_right#[fg=#c6c8d1,bg=#1e2132] #[fg=#2e3244,bg=#1e2132,nobold,nounderscore,noitalics]$separator_right#[fg=#c6c8d1,bg=#2e3244] $module_right_1 #[fg=#454b68,bg=#2e3244,nobold,nounderscore,noitalics]$separator_right#[fg=#c6c8d1,bg=#454b68,bold] $module_right_2 #{prefix_highlight}"
    # setw -g window-status-format "#[fg=#1e2132,bg=#1e2132,nobold,nounderscore,noitalics]$separator_right#[fg=#c6c8d1] #I $subseparator_right #W $subseparator_left#[fg=#1e2132,bg=#1e2132,nobold,nounderscore,noitalics]$separator_right"
    # # setw -g window-status-current-format "#[fg=#e27878,bg=#1E2132,nobold,nounderscore,noitalics]$separator_right#[fg=#161821,bg=#e27878] #I $subseparator_right #W $subseparator_left #F #[fg=#e27878,bg=#1e2132,nobold,nounderscore,noitalics]$separator_left"
    # setw -g window-status-current-format "#[bg=#454b68,fg=#1E2132,nobold,nounderscore,noitalics]$current_separator_right#[fg=#c6c8d1,bg=#454b68] #I $subseparator_right #W $subseparator_left #F #[fg=#454b68,bg=#1e2132,nobold,nounderscore,noitalics]$current_separator_left"


    # initialize plugin manager
  3. adrianvalenz created this gist Oct 14, 2023.
    162 changes: 162 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,162 @@
    # set -g default-terminal "screen-256color"
    set -g default-terminal "xterm-256color"

    set -g prefix C-f
    unbind C-b
    bind-key C-a send-prefix

    unbind r
    bind r source-file ~/.tmux.conf

    # Resize window panes
    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 m resize-pane -Z

    set -g mouse on

    set-window-option -g mode-keys vi

    bind-key -T copy-mode-vi 'v' send -X begin-selection # start selecting text with "v"
    bind-key -T copy-mode-vi 'y' send -X copy-selection # copy text with "y"

    unbind -T copy-mode-vi MouseDragEnd1Pane # don't exit copy mode after dragging with mouse

    set -g @plugin 'tmux-plugins/tpm'

    # list of plugins
    set -g @plugin 'christoomey/vim-tmux-navigator'


    # Catpuccin theme
    # set -g @plugin 'catppuccin/tmux'
    # set -g @plugin 'dreamsofcode-io/catppuccin-tmux'
    # set -g @catppuccin_flavour 'latte' # or frappe, macchiato, mocha, latte
    # set -g @catppuccin_left_separator "█"
    # set -g @catppuccin_right_separator "█"
    # set -g @catppuccin_window_tabs_enabled on # or off to disable window_tabs

    # Nord theme
    set -g @plugin "arcticicestudio/nord-tmux"

    # Rose Pine theme
    # set -g @plugin 'rose-pine/tmux'
    #
    # set -g @rose_pine_variant 'main' # Options are 'main', 'moon' or 'dawn'
    # set -g @rose_pine_user 'on' # Turn on the username component in the statusbar
    # set -g @rose_pine_username_icon '󰠬 ' # Changes the default icon to the right of the hostname
    # set -g @rose_pine_date_time '%m/%d/%Y'
    # set -g @rose_pine_left_separator '  ' # The strings to use as separators are 1-space padded
    # set -g @rose_pine_right_separator '  ' # Accepts both normal chars & nerdfont icons
    # set -g @rose_pine_window_status_separator " 󰳭 " # Changes the default icon that appears between window names

    # set -g @rose_pine_host 'on'
    # set -g @rose_pine_bar_bg_disable 'on' # If set to 'on', disables background color, for transparent terminal emulators
    # set -g @rose_pine_bar_bg_disabled_color_option '0'
    # set -g @rose_pine_only_windows 'on' # Leaves only the window module, for max focus and space
    # set -g @rose_pine_disable_active_window_menu 'on' # Disables the menu that shows the active window on the left

    # You can insert as an option a value that the date command accepts (man date for info)

    # set -g @plugin 'jimeh/tmux-themepack' # to configure tmux theme
    # set -g @themepack 'powerline/double/cyan' # use this theme for tmux

    #!/usr/bin/env bash

    # Kanagawa colors for Tmux

    # set -g mode-style "fg=#658594,bg=#2D4F67"
    #
    # set -g message-style "fg=#658594,bg=#2D4F67"
    # set -g message-command-style "fg=#658594,bg=#2D4F67"
    #
    # set -g pane-border-style "fg=#2D4F67"
    # set -g pane-active-border-style "fg=#658594"
    #
    # set -g status "on"
    # set -g status-justify "left"
    #
    # set -g status-style "fg=#658594,bg=#1F1F28"
    #
    # set -g status-left-length "100"
    # set -g status-right-length "100"
    #
    # set -g status-left-style NONE
    # set -g status-right-style NONE
    #
    # set -g status-left "#[fg=#16161D,bg=#658594,bold] #S #[fg=#658594,bg=#1F1F28,nobold,nounderscore,noitalics]"
    # set -g status-right "#[fg=#1F1F28,bg=#1F1F28,nobold,nounderscore,noitalics]#[fg=#658594,bg=#1F1F28] #{prefix_highlight} #[fg=#2D4F67,bg=#1F1F28,nobold,nounderscore,noitalics]#[fg=#658594,bg=#2D4F67] %Y-%m-%d  %I:%M %p #[fg=#658594,bg=#2D4F67,nobold,nounderscore,noitalics]#[fg=#16161D,bg=#658594,bold] #h "
    # if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" == "24" ]' {
    # set -g status-right "#[fg=#1F1F28,bg=#1F1F28,nobold,nounderscore,noitalics]#[fg=#658594,bg=#1F1F28] #{prefix_highlight} #[fg=#2D4F67,bg=#1F1F28,nobold,nounderscore,noitalics]#[fg=#658594,bg=#2D4F67] %Y-%m-%d  %H:%M #[fg=#658594,bg=#2D4F67,nobold,nounderscore,noitalics]#[fg=#16161D,bg=#658594,bold] #h "
    # }
    #
    # setw -g window-status-activity-style "underscore,fg=#7FB4CA,bg=#1F1F28"
    # setw -g window-status-separator ""
    # setw -g window-status-style "NONE,fg=#7FB4CA,bg=#1F1F28"
    # setw -g window-status-format "#[fg=#1F1F28,bg=#1F1F28,nobold,nounderscore,noitalics]#[default] #I  #W #F #[fg=#1F1F28,bg=#1F1F28,nobold,nounderscore,noitalics]"
    # setw -g window-status-current-format "#[fg=#1F1F28,bg=#2D4F67,nobold,nounderscore,noitalics]#[fg=#658594,bg=#2D4F67,bold] #I  #W #F #[fg=#2D4F67,bg=#1F1F28,nobold,nounderscore,noitalics]"
    #
    # # tmux-plugins/tmux-prefix-highlight support
    # set -g @prefix_highlight_output_prefix "#[fg=#FF9E3B]#[bg=#1F1F28]#[fg=#1F1F28]#[bg=#FF9E3B]"
    # set -g @prefix_highlight_output_suffix ""


    # End themes
    #
    #


    # FILE: iceberg.tmux.conf
    # REPO: https://github.com/gkeep/iceberg-dark
    # MAINTAINER: gkeep <[email protected]>

    # set -g status-justify "left"
    # set -g status "on"
    # set -g status-left-style "none"
    # set -g message-command-style "fg=#c6c8d1,bg=#2e3244"
    # set -g status-right-style "none"
    # set -g pane-active-border-style "fg=#454b68"
    # set -g status-style "none,bg=#1e2132"
    # set -g message-style "fg=#c6c8d1,bg=#2e3244"
    # set -g pane-border-style "fg=#2e3244"
    # set -g status-right-length "100"
    # set -g status-left-length "100"
    # setw -g window-status-activity-style "none,fg=#454b68,bg=#1e2132"
    # setw -g window-status-separator ""
    # setw -g window-status-style "none,fg=#c6c8d1,bg=#1e2132"
    #
    # # modules
    # module_left_1="#(whoami)"
    # module_left_2="%R %a"
    #
    # module_right_1="#(ip route get 1 | awk '{print $7}')"
    # module_right_2="#H"
    #
    # # separators
    # separator_left=""
    # separator_right=""
    # # separator_left=""
    # # separator_right=""
    #
    # current_separator_left=""
    # current_separator_right=""
    #
    # subseparator_left=""
    # subseparator_right=""
    #
    # set -g status-left "#[fg=#c6c8d1,bg=#454b68,bold] $module_left_1 #[fg=#454b68,bg=#2e3244,nobold,nounderscore,noitalics]$separator_left#[fg=#c6c8d1,bg=#2e3244] $module_left_2 #[fg=#2e3244,bg=#1e2132,nobold,nounderscore,noitalics]$separator_left#[fg=#c6c8d1,bg=#1e2132] #[fg=#1e2132,bg=#1e2132,nobold,nounderscore,noitalics]$separator_left"
    # # set -g status-left "#[fg=#1e2132,bg=#e27878,bold] $module_left_1 #[fg=#e27878,bg=#2e3244,nobold,nounderscore,noitalics]$separator_left#[fg=#c6c8d1,bg=#2e3244] $module_left_2 #[fg=#2e3244,bg=#1e2132,nobold,nounderscore,noitalics]$separator_left#[fg=#c6c8d1,bg=#1e2132] #[fg=#1e2132,bg=#1e2132,nobold,nounderscore,noitalics]$separator_left"
    # set -g status-right "#[fg=#1e2132,bg=#1e2132,nobold,nounderscore,noitalics]$separator_right#[fg=#c6c8d1,bg=#1e2132] #[fg=#2e3244,bg=#1e2132,nobold,nounderscore,noitalics]$separator_right#[fg=#c6c8d1,bg=#2e3244] $module_right_1 #[fg=#454b68,bg=#2e3244,nobold,nounderscore,noitalics]$separator_right#[fg=#c6c8d1,bg=#454b68,bold] $module_right_2 #{prefix_highlight}"
    # setw -g window-status-format "#[fg=#1e2132,bg=#1e2132,nobold,nounderscore,noitalics]$separator_right#[fg=#c6c8d1] #I $subseparator_right #W $subseparator_left#[fg=#1e2132,bg=#1e2132,nobold,nounderscore,noitalics]$separator_right"
    # # setw -g window-status-current-format "#[fg=#e27878,bg=#1E2132,nobold,nounderscore,noitalics]$separator_right#[fg=#161821,bg=#e27878] #I $subseparator_right #W $subseparator_left #F #[fg=#e27878,bg=#1e2132,nobold,nounderscore,noitalics]$separator_left"
    # setw -g window-status-current-format "#[bg=#454b68,fg=#1E2132,nobold,nounderscore,noitalics]$current_separator_right#[fg=#c6c8d1,bg=#454b68] #I $subseparator_right #W $subseparator_left #F #[fg=#454b68,bg=#1e2132,nobold,nounderscore,noitalics]$current_separator_left"



    # initialize plugin manager
    run '~/.tmux/plugins/tpm/tpm'