From 96af8aaf019ba5ee7d26579838c1c26f8612b6ff Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 11 Feb 2020 19:31:37 -0500 Subject: [PATCH] Fix runaway creation of tmux sessions --- config/sxhkd/sxhkdrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/sxhkd/sxhkdrc b/config/sxhkd/sxhkdrc index 124f03df..da570b56 100644 --- a/config/sxhkd/sxhkdrc +++ b/config/sxhkd/sxhkdrc @@ -10,8 +10,10 @@ super + t super + apostrophe bspc window -s last +# Attach to a detached session. If none is available create a new one, rather +# than attach to one that is already attached to elsewhere. super + Return - xst -e bash -c "tmux new || tmux attach" + xst -e bash -c "(tmux ls | grep -vq attached && tmux at) || tmux" ctrl + super + Return xst