servers/right

This commit is contained in:
Marc Beninca 2025-06-30 03:40:04 +02:00
parent 2fb16aa2f4
commit f97f6a0fcd
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -27,15 +27,20 @@ rwx_tmux_servers() {
\"
for path in \${paths}; do
name=\"\$(basename \"\${path}\")\"
text=\"\${text}\\
#[fg=default]\\
#[bg=default] \\
\"
if [ \"\${active}\" = \"\${name}\" ]; then
text=\"\${text}#[fg=green]\"
else
text=\"\${text}#[fg=yellow]\"
fi
text=\"\${text}\\
#[bg=##181818] #[bg=##282828]\\
\${name}\\
#[bg=##181818] #[bg=default]#[fg=default] \"
#[bg=##181818] \\
#[bg=##282828]\${name}\\
#[bg=##181818] \\
\"
done
IFS=\"\${ifs}\"
echo \"\${text}\"
@ -166,9 +171,9 @@ set-option -g status-format[1] '\
# line 3
set-option -g status-format[2] '\
#[fg=yellow]\
#(sh -c \". ${script}; rwx_tmux_servers\")\
#[fg=cyan]#{pane_current_path}\
#[align=right]\
#(sh -c \". ${script}; rwx_tmux_servers\")\
'
# line 4