You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing a similar (maybe the same problem) as in Issue 555 , tried looking for similar issues, what I found was Issue 352, but the information there was not that useful to solve my problem (although I feel it's more of a config issue than an actual bug). The behavior I see is similar to what is described in 555 where first I couldn't make the custom module to show, and after some tweaking I could make it show, but the colors were all screwed, for what is worth I'm trying to use show not plain text but another plugin (soyuka/tmux-current-pane-hostname) work as the custom module. So far I've been able to show the information but the color formatting is a little weird:
The relevant parts of my config:
set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.config/tmux/plugins'
set -g prefix ^Space
bind 'r' source-file ~/.config/tmux/tmux.conf \; display "Reloaded!"
bind 'v' copy-mode
set -g mouse on
set -g default-terminal 'screen-256color' # internal tmux terminal
set -g terminal-overrides ',xterm-256color:RGB' # external tmux terminal (where is it running)
set -g history-limit 1000000 # increase history size (from 2,000)
set -g set-clipboard on # use system clipboard
set -g status-position top # macOS / darwin style
set -g allow-rename off # stops comands from renaming the window
set -g base-index 1 # start indexing windows at 1 instead of 0
set -g renumber-windows on # renumber all windows when any window is closed
set -g pane-active-border-style 'fg=magenta,bg=default'
set -g pane-border-style 'fg=brightblack,bg=default'
set -g detach-on-destroy off # don't exit from tmux when closing a session
set -g escape-time 0 # zero-out escape time delay
set -g mode-keys vi # key bindings for copy mode
# Set new panes to open in current directory
bind c new-window -c '#{pane_current_path}'
bind '"' split-window -c '#{pane_current_path}'
bind % split-window -h -c '#{pane_current_path}'
# Include used plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# set -g @plugin 'catppuccin/tmux'
set -g @plugin 'catppuccin/tmux#v2.1.3'
set -g @plugin "soyuka/tmux-current-pane-hostname"
# Load Current Pane Hostname before using it in catppuccin status
run ~/.config/tmux/plugins/tmux-current-pane-hostname/current_pane_hostname.tmux
# Plugin Configurations
# Catppuccin Configurations
set -g @catppuccin_flavor 'mocha'
set -g @catppuccin_status_background 'none' # none == default
set -g @catppuccin_window_status_style 'basic' # basic, rounded, slanted, custom, or none
set -g @catppuccin_window_number_position 'right'
set -g @catppuccin_window_status_enable 'yes'
set -g @catppuccin_window_text '#W'
set -g @catppuccin_window_current_text '#W#{?window_zoomed_flag,(),}'
set -g @catppuccin_status_connect_separator 'no'
set -g @catppuccin_status_left_separator ' '
set -g @catppuccin_status_right_separator ' '
set -g @catppuccin_status_fill 'icon'
set -g @catppuccin_directory_text ' #{b:pane_current_path}'
set -g @catppuccin_date_time_text ' %d/%m %H:%M'
set -g @catppuccin_application_icon " "
set -g @catppuccin_application_color "#{@thm_yellow}"
set -g @catppuccin_session_icon " "
set -g @catppuccin_date_time_color "#{@thm_red}"
set -g @catppuccin_uptime_color "#{@thm_peach}"
%hidden MODULE_NAME="x_ssh"
set -g "@catppuccin_${MODULE_NAME}_icon" " "
set -g "@catppuccin_${MODULE_NAME}_color" "#{@thm_rosewater}"
set -g "@catppuccin_${MODULE_NAME}_text" " #{#U@#{l:#H}}"
source -F "~/.config/tmux/plugins/tmux/utils/status_module.conf"
# Load Catppuccin before setting status-left and/or status-left
run ~/.config/tmux/plugins/tmux/catppuccin.tmux
set -g status-left-length 100
set -g status-left ''
set -ga status-left '#{E:@catppuccin_status_session}'
set -ga status-right-length 100
set -g status-right ''
set -agF status-right '#{E:@catppuccin_status_x_ssh}'
set -ag status-right '#{E:@catppuccin_status_application}'
set -ag status-right '#{E:@catppuccin_status_uptime}'
set -ag status-right '#{E:@catppuccin_status_date_time}'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.config/tmux/plugins/tpm/tpm'
Two things jumped to me while reading issue 352:
It was suggested that set -agF status-right '#{E:@catppuccin_status_x_ssh}' should not use de F flag, I couldn't really make it work, the only combination that worked for me was with this two lines:
set -g "@catppuccin_${MODULE_NAME}_text" " #{#U@#{l:#H}}"
#---
set -agF status-right '#{E:@catppuccin_status_x_ssh}'
Which displays as:
The second thing that was stated in that issue is that the plugin should be sourced before the module is configured (before you set this options), however when I do that I can't get the plugin to show at all (as in Issue 555).
Lastly (which by my experiments might not be possible), the plugin shows an option to change the output depending on if you have an SSH connection alive (current pane), I wanted to use a conditional clause to change the x_ssh_module text depending on the variables, but according to my experiments, and the repository modules I guess this is not possible for the text?.
Hope someone with better understanding of tmux options can help me figure this one out, because I've been breaking my head around it to no success.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm facing a similar (maybe the same problem) as in Issue 555 , tried looking for similar issues, what I found was Issue 352, but the information there was not that useful to solve my problem (although I feel it's more of a config issue than an actual bug). The behavior I see is similar to what is described in 555 where first I couldn't make the custom module to show, and after some tweaking I could make it show, but the colors were all screwed, for what is worth I'm trying to use show not plain text but another plugin (soyuka/tmux-current-pane-hostname) work as the custom module. So far I've been able to show the information but the color formatting is a little weird:
The relevant parts of my config:
Two things jumped to me while reading issue 352:
set -agF status-right '#{E:@catppuccin_status_x_ssh}'should not use deFflag, I couldn't really make it work, the only combination that worked for me was with this two lines:Which displays as:
Lastly (which by my experiments might not be possible), the plugin shows an option to change the output depending on if you have an SSH connection alive (current pane), I wanted to use a conditional clause to change the x_ssh_module text depending on the variables, but according to my experiments, and the repository modules I guess this is not possible for the text?.
Hope someone with better understanding of tmux options can help me figure this one out, because I've been breaking my head around it to no success.
Beta Was this translation helpful? Give feedback.
All reactions