fixes
All checks were successful
/ job (push) Successful in 2m55s

This commit is contained in:
Marc Beninca 2025-07-26 11:54:57 +02:00
parent 69a6eabbec
commit 1b6d111668
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -230,7 +230,7 @@ ${RWX_TMUX_BORDER_BACKGROUND}#{?window_zoomed_flag,\
#= tms
#/ tmux_setup
rwx_tmux_setup() {
local file script
local file script space
if rwx_root; then
file="/etc/tmux.conf"
script="/etc/tmux.sh"
@ -238,6 +238,7 @@ rwx_tmux_setup() {
file="${HOME}/.tmux.conf"
script="${HOME}/.tmux.sh"
fi
space="${RWX_TMUX_RESET} "
# FIXME skip parsing these functions
rwx_file_write "${script}" "\
# ╭─────┬──────┬────────╮
@ -260,9 +261,7 @@ rwx_tmux_servers() {
sockets=\"\$(find \"\${root}\" -type s -printf \"%P\\n\")\"
while IFS= read -r name; do
if tmux -L \"\${name}\" list-sessions >/dev/null; then
text=\"\${text}\\
${RWX_TMUX_RESET} \\
\"
[ -n \"\${text}\" ] && text=\"\${text}${space}\"
if [ \"\${name}\" = \"\${active}\" ]; then
text=\"\${text}#[fg=green]\"
else
@ -331,7 +330,7 @@ ${RWX_TMUX_BORDER_BACKGROUND} \\
\"
}
"
local date host pane session space time user window
local date host pane session time user window
local server servers title uptime
date="$(rwx_tmux_item_date)"
host="$(rwx_tmux_item_host)"
@ -339,7 +338,6 @@ ${RWX_TMUX_BORDER_BACKGROUND} \\
server="$(rwx_tmux_item_script "${script}" server)"
servers="$(rwx_tmux_item_script "${script}" servers)"
session="$(rwx_tmux_item_session)"
space="${RWX_TMUX_RESET} "
time="$(rwx_tmux_item_time)"
title="$(rwx_tmux_item_title)"
uptime="$(rwx_tmux_item_script "${script}" uptime)"
@ -425,12 +423,9 @@ set-option -g status-format[0] '\
${window}\
${space}\
}\
${space}\
\
#[align=right]\
\
${date}\
${space}\
${time}\
'
@ -440,23 +435,22 @@ set-option -g status-format[1] '\
${session}\
${space}\
}\
${space}\
\
#[align=right]\
\
${servers}\
${date}\
'
# line 3
set-option -g status-format[2] '\
#{P:\
${pane}\
${space}\
}\
${space}\
${servers}\
\
#[align=right]\
\
#{P:\
${space}\
${pane}\
}\
'
# line 4