Skip to content

Breaks tmux-cpu #63

@oddgr8

Description

@oddgr8

Cannot use this plugin with https://github.com/tmux-plugins/tmux-cpu. Here's my configuration that doesn't work:

set -g default-terminal "xterm-256color"
set -ga terminal-overrides ",*256col*:Tc"

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

unbind %
bind | split-window -h 

unbind '"'
bind - split-window -v

bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5

bind -r m resize-pane -Z

set -g mouse on

set-window-option -g mode-keys vi
bind r source-file ~/.config/tmux/tmux.conf \; display "Reloaded!"


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 when dragging with mouse

# remove delay for exiting insert mode with ESC in Neovim
set -sg escape-time 10

###########################
# Plugins
###########################
# To install plugins:
#   1) Add plugin down here
#   2) Prefix + I to install plugin
# To update plugins:
#   1) Prefix + U
# To remove plugins:
#   1) Remove line down here
#   2) Prefix + ALT + U
# If you're using iTerm2 on a Mac you may need to go to your Profiles, 
# then keys and select that the `option` key should be treated as `Esc+` 
# in order for the `Prefix + ALT + U` combination to work.

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
# Add more plugins below this line
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-cpu'
set -g @plugin 'jimeh/tmux-themepack'
set -g @plugin 'tmux-plugins/tmux-resurrect' # persist tmux sessions after computer restart
set -g @plugin 'tmux-plugins/tmux-continuum' # automatically saves sessions for you every 15 minutes

set -g @resurrect-capture-pane-contents 'on'
# Disable automatic restore. Use <prefix> Ctrl-r instead.
# set -g @continuum-restore 'on'

set -g @themepack 'powerline/default/cyan'
# Overwrite colors to match catppuccin
set -g @powerline-color-main-1 '#89b4fa'
set -g @powerline-color-main-2 '#74c7ec'
set -g @powerline-color-main-3 '#89dceb'
set -g @powerline-color-black-1 '#181825'
set -g @powerline-color-grey-1 '#1e1e2e'
set -g @powerline-color-grey-2 '#313244'
set -g @powerline-color-grey-3 '#45475a'
set -g @powerline-color-grey-4 '#585b70'
set -g @powerline-color-grey-5 '#6c7086'
set -g @powerline-color-grey-6 '#7f849c'

# Add right side values
set -g status-interval 2
set -g @themepack-status-right-area-left-format "CPU #{cpu_percentage}"
set -g @themepack-status-right-area-middle-format "Mem #{ram_percentage}"

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

# It doesn't matter wheter you keep or remove this line
# It only shows "CPU:  | RAM:"
set -g status-right 'CPU: #{cpu_percentage} | RAM: #{ram_percentage}'

Tmux version: tmux3.5a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions