guest@dotshare [~/groups/terms/tmux] $ ls tmux-configuration/ | cat

tmux configuration (scrot, raw, dl)

sharpicx Apr 28, 2023 (terms/tmux)

SCROT

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# tmux configuration by sharpicx. 
# my lovely arch, archicx.


# Unbinded keys
unbind n # default: next window
unbind p # default: previous winodow
unbind C-b # default: prefix
unbind r
unbind h 
unbind v 
unbind % # default: key of vertcial split
unbind '"' # default: key of horizontal split
unbind c # default: create a new window
unbind k # default: none at all.
unbind , # default: rename
unbind +
unbind C-c
# ---

# ---
# General Settings.
# ---

set -g repeat-time 200
setw -g allow-rename off
setw -g automatic-rename off
set -g buffer-limit 20
set -g default-terminal "xterm-256color"
set -g base-index 1
set -g set-titles off
set -g base-index 1
set -g aggressive-resize on 
set -g mouse on

# ---
# replacing the default prefix with a new one.
# ---
set -g prefix C-a
bind-key a send-prefix

# ---
# key to reload a config file.
# ---
bind + source ~/.tmux.conf \; display 'CONFIG RELOADED!'

# ---
# Window settings
# ---

# error in the sequences of these keys
bind-key -n Home send Escape "OH" 
bind-key -n End send Escape "OF"


# create window
bind c new-window -c "#{pane_current_path}" 

# kill window and pane
bind x kill-pane
bind X kill-window

# renaming window & session
bind r command-prompt "rename-window '%%"
bind R command-prompt "rename-session '%%'"

# hotkey to switch between 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

# hotkeys to make a move between windows in a session.
bind -n S-Left previous-window
bind -n S-Right next-window

# tmux pane border colors
set -g pane-border-style "fg=white, bg=black"
set -g pane-active-border-style "fg=green, bg=black"

# Splitting Panels.
bind - split-window -v -c "#{pane_current_path}"
bind | split-window -h -c "#{pane_current_path}"

set -g display-panes-time 1500

# activating UTF-8
# set-window-option -g utf8 on

# moving pane to a new window.
bind-key C-@ choose-window 'join-pane    -s "%%"'

# status line
source "/usr/lib/python3.10/site-packages/powerline/bindings/tmux/powerline.conf"

# set window title
set-window-option -g automatic-rename on
set-option -g set-titles on

# Mouse mode.
set -g mouse on

# adding more history.
set -g history-limit 200000

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-cpu'
set -g @plugin 'laktak/extrakto'
# set -g @plugin "janoamaral/tokyo-night-tmux"
set -g @plugin 'hoshiya4522/tokyo-night-tmux'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'wfxr/tmux-fzf-url'


# Other examples:
# doesnt work
# set -g @plugin "arcticicestudio/nord-tmux"
set -g @plugin 'b0o/tmux-autoreload'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'

CLICK TO VIEW

x