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