From 419857f7d5f72679dc699ec57a12b3eb626e8e63 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 25 Jul 2025 16:08:05 +0200 Subject: [PATCH] tmux/fixes --- sh/tmux.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sh/tmux.sh b/sh/tmux.sh index 4a83682..e2961eb 100644 --- a/sh/tmux.sh +++ b/sh/tmux.sh @@ -54,12 +54,13 @@ rwx_tmux_server() { --fields \"1\" } rwx_tmux_servers() { - local active name root sockets text + local active name root sockets text user_id 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\")\" while IFS= read -r name; do - if tmux -L \"\${name}\" list-sessions; then + if tmux -L \"\${name}\" list-sessions >/dev/null; then text=\"\${text}\\ #[fg=default]\\ #[bg=default] \\