tmux/fixes
All checks were successful
/ job (push) Successful in 3m1s

This commit is contained in:
Marc Beninca 2025-07-25 16:08:05 +02:00
parent 98935dc9ba
commit 419857f7d5
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -54,12 +54,13 @@ rwx_tmux_server() {
--fields \"1\" --fields \"1\"
} }
rwx_tmux_servers() { rwx_tmux_servers() {
local active name root sockets text local active name root sockets text user_id
active=\"\$(rwx_tmux_server)\" active=\"\$(rwx_tmux_server)\"
root=\"/tmp/tmux-\$(id -u)\" user_id=\"\$(id -u)\"
root=\"/tmp/tmux-\${user_id}\"
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; then if tmux -L \"\${name}\" list-sessions >/dev/null; then
text=\"\${text}\\ text=\"\${text}\\
#[fg=default]\\ #[fg=default]\\
#[bg=default] \\ #[bg=default] \\