@@ -29,8 +29,8 @@ set -g history-limit 50000
2929bind c new-window -c " #{pane_current_path}"
3030
3131# Splits
32- bind-key | split-window -h -c " #{pane_current_path}"
33- bind-key - split-window -c " #{pane_current_path}"
32+ bind-key | split-window -h -c " #{pane_current_path}"
33+ bind-key - split-window -c " #{pane_current_path}"
3434bind-key ^V split-window -h
3535bind-key ^S split-window
3636
@@ -44,10 +44,11 @@ set-window-option -g set-clipboard on
4444
4545# Enable Colored term 256-colors
4646setw -g xterm-keys on
47- set -g default-terminal screen-256color
47+ # set -g default-terminal screen-256color
48+ set -g default-terminal " tmux-256color"
4849
4950# Enable UTF-8 on Status-Bar
50- set -g status on
51+ set -g status on
5152# set -g status-utf8 on
5253
5354# Config. to refresh interval on Status-Bar
@@ -69,22 +70,69 @@ set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program name
6970set-option -g visual-bell on
7071
7172# # `+r reloads the configuration, handy
72- bind r source-file ~ /.tmux.conf \; display " Reloaded !"
73+ bind r source-file ~ /.config/tmux/ tmux.conf \; display " Reloaded !"
7374
7475# Log output to a text file on demand
7576bind P pipe-pane -o " cat >>~/logs/#W.log" \; display " Toggled logging to ~/logs/#W.log"
7677
78+ # ## configure Tmux Plugin Manager
79+ set-environment -gF TMUX_PLUGIN_MANAGER_PATH ' #{HOME}/.config/tmux/plugins/'
80+
7781# List of plugins
7882# > https://github.com/tmux-plugins/list
79- set -g @plugin ' tmux-plugins/tpm' # Installs and loads tmux plugins.
80- set -g @plugin ' jimeh/tmuxifier' # Powerful session, window & pane management for Tmux.
81- set -g @plugin ' tmux-plugins/tmux-sensible' # A set of tmux options that should be acceptable to everyone.
82- set -g @plugin ' tmux-plugins/tmux-yank' # Copy to the system clipboard in tmux.
83- set -g @plugin ' tmux-plugins/tmux-copycat' # A plugin that enhances tmux search
84- set -g @plugin ' tmux-plugins/tmux-resurrect' # Restore tmux environment after system restart.
85- set -g @plugin ' tmux-plugins/tmux-prefix-highlight' # Plugin that highlights when you press tmux prefix key
86- set -g @plugin ' tmux-plugins/tmux-sessionist' # Lightweight tmux utilities for manipulating tmux sessions.
87- set -g @plugin ' odedlaz/tmux-onedark-theme' # A dark tmux color scheme for terminal based on onedark.vim
88- set -g @plugin ' jimeh/tmuxifier' # Powerful session, window & pane management for Tmux.
89-
90- run ' ~/.config/tmux/plugins/tpm/tpm'
83+ set -g @plugin ' tmux-plugins/tpm' # Installs and loads tmux plugins.
84+ set -g @plugin ' jimeh/tmuxifier' # Powerful session, window & pane management for Tmux.
85+ set -g @plugin ' tmux-plugins/tmux-sensible' # A set of tmux options that should be acceptable to everyone.
86+ set -g @plugin ' tmux-plugins/tmux-yank' # Copy to the system clipboard in tmux.
87+ set -g @plugin ' tmux-plugins/tmux-copycat' # A plugin that enhances tmux search
88+ set -g @plugin ' tmux-plugins/tmux-resurrect' # Restore tmux environment after system restart.
89+ set -g @plugin ' tmux-plugins/tmux-prefix-highlight' # Plugin that highlights when you press tmux prefix key
90+ set -g @plugin ' tmux-plugins/tmux-sessionist' # Lightweight tmux utilities for manipulating tmux sessions.
91+ set -g @plugin ' omerxx/tmux-sessionx' # tmux session management made easy.
92+ set -g @plugin ' tmux-plugins/tmux-cpu' # CPU usage plugin for tmux status bar
93+ set -g @plugin ' tmux-plugins/tmux-battery' # Battery status plugin for tmux status bar
94+ # set -g @plugin 'arcticicestudio/nord-tmux' # An elegant nord color scheme for tmux
95+ # set -g @plugin 'odedlaz/tmux-onedark-theme' # A dark tmux color scheme for terminal based on onedark.vim
96+ set -g @plugin ' catppuccin/tmux#v2.1.3' # Catppuccin Theme
97+ set -g @plugin ' jimeh/tmuxifier' # Powerful session, window & pane management for Tmux.
98+ set -g @catppuccin_flavor ' macchiato' # latte, frappe, macchiato or mocha
99+
100+ if " test ! -d ~/.config/tmux/plugins/tpm" \
101+ " run 'git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm && ~/.config/tmux/plugins/tpm/bin/install_plugins'"
102+
103+
104+
105+ run ' #{TMUX_PLUGIN_MANAGER_PATH}/tpm/tpm'
106+ run ' #{TMUX_PLUGIN_MANAGER_PATH}/tmux/catppuccin.tmux'
107+ run ' #{TMUX_PLUGIN_MANAGER_PATH}/tmux-plugins/tmux-cpu/cpu.tmux'
108+
109+
110+ # Catppuccin Status Bar Config
111+
112+ set -g @catppuccin_flavor ' mocha'
113+ set -g @catppuccin_window_status_style ' rounded'
114+ set -g @catppuccin_window_number_position ' right'
115+ set -g @catppuccin_window_status ' no'
116+ set -g @catppuccin_window_default_text ' #W'
117+ set -g @catppuccin_window_current_fill ' number'
118+ set -g @catppuccin_window_current_text ' #W'
119+ set -g @catppuccin_window_current_color ' #{E:@thm_surface_2}'
120+ set -g @catppuccin_date_time_text ' %d.%m. %H:%M'
121+ set -g @catppuccin_status_module_text_bg ' #{E:@thm_mantle}'
122+
123+ # set left and right status bar
124+ set -g allow-rename off
125+ set -g status-position bottom
126+ set -g status-interval 5
127+ set -g status-left-length 100
128+ set -g status-right-length 100
129+ set -g status-left ' #{E:@catppuccin_status_session} '
130+ set -gF status-right ' #{E:@catppuccin_status_primary_ip}'
131+ set -agF status-right ' #{E:@catppuccin_status_ctp_cpu}'
132+ set -agF status-right ' #{E:@catppuccin_status_ctp_memory}'
133+ if ' test -r /sys/class/power_supply/BAT*' {
134+ set -agF status-right ' #{E:@catppuccin_status_battery}'
135+ }
136+ set -ag status-right ' #{E:@catppuccin_status_date_time}'
137+
138+
0 commit comments