Skip to content

Instantly share code, notes, and snippets.

@apzentral
Last active September 29, 2023 19:18
Show Gist options
  • Save apzentral/11087412784c05a070e232510fb5476b to your computer and use it in GitHub Desktop.
Save apzentral/11087412784c05a070e232510fb5476b to your computer and use it in GitHub Desktop.

Revisions

  1. apzentral revised this gist Sep 29, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -109,6 +109,6 @@ setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244
    setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'

    # messages
    set -g message-style 'fg=colour232 bg=colour16 bold'
    set -g message-style 'fg=colour252 bg=colour16 bold'

    ######################
  2. apzentral revised this gist Sep 29, 2023. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -73,6 +73,9 @@ run '~/.tmux/plugins/tpm/tpm'
    ### DESIGN CHANGES ###
    ######################

    # Color:
    # https://superuser.com/questions/285381/how-does-the-tmux-color-palette-work

    # loud or quiet?
    set -g visual-activity off
    set -g visual-bell off
    @@ -93,7 +96,7 @@ set -g status-position bottom
    set -g status-justify left
    set -g status-style 'bg=colour18 fg=colour137 dim'
    set -g status-left ''
    set -g status-right '#[fg=colour233,bg=colour19] %d/%m #[fg=colour233,bg=colour8] %H:%M:%S '
    set -g status-right '#[fg=colour7,bg=colour19] %d/%m #[fg=colour238,bg=colour8] %H:%M:%S '
    set -g status-right-length 50
    set -g status-left-length 20

  3. apzentral revised this gist Sep 29, 2023. 1 changed file with 12 additions and 12 deletions.
    24 changes: 12 additions & 12 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -81,31 +81,31 @@ setw -g monitor-activity off
    set -g bell-action none

    # modes
    # setw -g clock-mode-colour colour5
    # setw -g mode-style 'fg=colour1 bg=colour18 bold'
    setw -g clock-mode-colour colour5
    setw -g mode-style 'fg=colour1 bg=colour18 bold'

    # panes
    # set -g pane-border-style 'fg=colour19 bg=colour0'
    # set -g pane-active-border-style 'bg=colour0 fg=colour9'
    set -g pane-border-style 'fg=colour19 bg=colour0'
    set -g pane-active-border-style 'bg=colour0 fg=colour9'

    # statusbar
    set -g status-position bottom
    set -g status-justify left
    # set -g status-style 'bg=colour18 fg=colour137 dim'
    set -g status-style 'bg=colour18 fg=colour137 dim'
    set -g status-left ''
    # set -g status-right '#[fg=colour233,bg=colour19] %d/%m #[fg=colour233,bg=colour8] %H:%M:%S '
    set -g status-right '#[fg=colour233,bg=colour19] %d/%m #[fg=colour233,bg=colour8] %H:%M:%S '
    set -g status-right-length 50
    set -g status-left-length 20

    # setw -g window-status-current-style 'fg=colour1 bg=colour19 bold'
    # setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '
    setw -g window-status-current-style 'fg=colour1 bg=colour19 bold'
    setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '

    # setw -g window-status-style 'fg=colour9 bg=colour18'
    # setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
    setw -g window-status-style 'fg=colour9 bg=colour18'
    setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '

    # setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
    setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'

    # messages
    # set -g message-style 'fg=colour232 bg=colour16 bold'
    set -g message-style 'fg=colour232 bg=colour16 bold'

    ######################
  4. apzentral revised this gist Sep 29, 2023. 1 changed file with 12 additions and 12 deletions.
    24 changes: 12 additions & 12 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -81,31 +81,31 @@ setw -g monitor-activity off
    set -g bell-action none

    # modes
    setw -g clock-mode-colour colour5
    setw -g mode-style 'fg=colour1 bg=colour18 bold'
    # setw -g clock-mode-colour colour5
    # setw -g mode-style 'fg=colour1 bg=colour18 bold'

    # panes
    set -g pane-border-style 'fg=colour19 bg=colour0'
    set -g pane-active-border-style 'bg=colour0 fg=colour9'
    # set -g pane-border-style 'fg=colour19 bg=colour0'
    # set -g pane-active-border-style 'bg=colour0 fg=colour9'

    # statusbar
    set -g status-position bottom
    set -g status-justify left
    set -g status-style 'bg=colour18 fg=colour137 dim'
    # set -g status-style 'bg=colour18 fg=colour137 dim'
    set -g status-left ''
    set -g status-right '#[fg=colour233,bg=colour19] %d/%m #[fg=colour233,bg=colour8] %H:%M:%S '
    # set -g status-right '#[fg=colour233,bg=colour19] %d/%m #[fg=colour233,bg=colour8] %H:%M:%S '
    set -g status-right-length 50
    set -g status-left-length 20

    setw -g window-status-current-style 'fg=colour1 bg=colour19 bold'
    setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '
    # setw -g window-status-current-style 'fg=colour1 bg=colour19 bold'
    # setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '

    setw -g window-status-style 'fg=colour9 bg=colour18'
    setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
    # setw -g window-status-style 'fg=colour9 bg=colour18'
    # setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '

    setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
    # setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'

    # messages
    set -g message-style 'fg=colour232 bg=colour16 bold'
    # set -g message-style 'fg=colour232 bg=colour16 bold'

    ######################
  5. apzentral revised this gist Sep 29, 2023. 1 changed file with 27 additions and 0 deletions.
    27 changes: 27 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -41,6 +41,33 @@ set-option -wg automatic-rename off
    bind C-c run "tmux save-buffer - | xclip -i -sel clip"
    bind C-v run "tmux set-buffer $(xclip -o -sel clip); tmux paste-buffer"

    # Show more line
    set-option -g history-limit 5000

    # UTF-8 (tmux < 2.2)
    set -q -g status-utf8 on
    setw -q -g utf8 on

    # Move window automatically
    set -g renumber-windows on

    # Keep current path
    bind c new-window -c "#{pane_current_path}"

    # TPM
    # Installing TPM
    # https://github.com/tmux-plugins/tpm#installation
    set -g @plugin 'tmux-plugins/tpm'

    ######################
    ### Plugins ###
    ######################

    set -g @plugin 'tmux-plugins/tmux-sensible'
    set -g @plugin 'dracula/tmux'


    run '~/.tmux/plugins/tpm/tpm'

    ######################
    ### DESIGN CHANGES ###
  6. apzentral revised this gist Sep 29, 2023. 1 changed file with 14 additions and 0 deletions.
    14 changes: 14 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -28,6 +28,20 @@ set -g default-terminal "screen-256color"
    setw -g word-separators ' @"=()[]'
    setw -ag word-separators "'"

    # Start counting pane and window number at 1
    set -g base-index 1
    setw -g pane-base-index 1

    # Disable automatic renaming
    set-option -wg automatic-rename off

    # Copy text from tmux
    # sudo apt-get install xclip -y
    # Use xclip to copy and paste with the system clipboard
    bind C-c run "tmux save-buffer - | xclip -i -sel clip"
    bind C-v run "tmux set-buffer $(xclip -o -sel clip); tmux paste-buffer"


    ######################
    ### DESIGN CHANGES ###
    ######################
  7. apzentral revised this gist Sep 29, 2023. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -14,9 +14,9 @@ unbind %
    bind r source-file ~/.tmux.conf

    # Enable mouse control (clickable windows, panes, resizable panes)
    set -g mouse-select-window on
    set -g mouse-select-pane on
    set -g mouse-resize-pane on
    # set -g mouse-select-window on
    # set -g mouse-select-pane on
    # set -g mouse-resize-pane on

    # Enable mouse mode (tmux 2.1 and above)
    set -g mouse on
  8. apzentral revised this gist Sep 29, 2023. 1 changed file with 57 additions and 2 deletions.
    59 changes: 57 additions & 2 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -4,12 +4,67 @@ set -g prefix C-a
    bind C-a send-prefix
    unbind C-b

    # split panes using | and -
    bind | split-window -h
    bind - split-window -v
    unbind '"'
    unbind %

    # reload config file
    bind r source-file ~/.tmux.conf

    # Enable mouse control (clickable windows, panes, resizable panes)
    set -g mouse-select-window on
    set -g mouse-select-pane on
    set -g mouse-resize-pane on

    # Enable mouse mode (tmux 2.1 and above)
    # set -g mouse on
    setw -g mouse on
    set -g mouse on
    # setw -g mouse on

    set -g default-terminal "screen-256color"

    # word separators for automatic word selection
    setw -g word-separators ' @"=()[]'
    setw -ag word-separators "'"

    ######################
    ### DESIGN CHANGES ###
    ######################

    # loud or quiet?
    set -g visual-activity off
    set -g visual-bell off
    set -g visual-silence off
    setw -g monitor-activity off
    set -g bell-action none

    # modes
    setw -g clock-mode-colour colour5
    setw -g mode-style 'fg=colour1 bg=colour18 bold'

    # panes
    set -g pane-border-style 'fg=colour19 bg=colour0'
    set -g pane-active-border-style 'bg=colour0 fg=colour9'

    # statusbar
    set -g status-position bottom
    set -g status-justify left
    set -g status-style 'bg=colour18 fg=colour137 dim'
    set -g status-left ''
    set -g status-right '#[fg=colour233,bg=colour19] %d/%m #[fg=colour233,bg=colour8] %H:%M:%S '
    set -g status-right-length 50
    set -g status-left-length 20

    setw -g window-status-current-style 'fg=colour1 bg=colour19 bold'
    setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '

    setw -g window-status-style 'fg=colour9 bg=colour18'
    setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '

    setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'

    # messages
    set -g message-style 'fg=colour232 bg=colour16 bold'

    ######################
  9. apzentral revised this gist Jul 20, 2022. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -9,3 +9,7 @@ unbind C-b
    setw -g mouse on

    set -g default-terminal "screen-256color"

    # word separators for automatic word selection
    setw -g word-separators ' @"=()[]'
    setw -ag word-separators "'"
  10. apzentral revised this gist Jul 16, 2022. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,7 @@ bind C-a send-prefix
    unbind C-b

    # Enable mouse mode (tmux 2.1 and above)
    set -g mouse on
    # set -g mouse on
    setw -g mouse on

    set -g default-terminal "screen-256color"
  11. apzentral revised this gist Jun 23, 2022. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -6,3 +6,5 @@ unbind C-b

    # Enable mouse mode (tmux 2.1 and above)
    set -g mouse on

    set -g default-terminal "screen-256color"
  12. apzentral revised this gist Feb 4, 2022. No changes.
  13. apzentral created this gist Mar 26, 2021.
    8 changes: 8 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    # remap prefix to Control + a
    set -g prefix C-a
    # bind 'C-a C-a' to type 'C-a'
    bind C-a send-prefix
    unbind C-b

    # Enable mouse mode (tmux 2.1 and above)
    set -g mouse on