From 92f20897231932fc92ea9c03e0d974e6db66ff55 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 18 Jan 2018 12:15:26 +0100 Subject: [tmux_attach] Open tmux session in workspace of the same name --- bin/bin/tmux_attach | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/bin/tmux_attach b/bin/bin/tmux_attach index 9d5488a..80add99 100755 --- a/bin/bin/tmux_attach +++ b/bin/bin/tmux_attach @@ -7,6 +7,8 @@ UNION=$(cat <(echo "$SESSIONS") <(echo "$TMUXINATOR") | sort | uniq | sed "/^$/d SESSION=$(echo "$UNION" | dmenu -i -p "Session:" | tr -d '[[:space:]]') [[ -n $SESSION ]] || exit +# Rename i3 workspace +command -v i3-msg && i3-msg workspace "$SESSION" grep -Fxq "$SESSION" <(echo "$TMUXINATOR") \ && COMMAND="tmuxinator start $SESSION" \ -- cgit v1.2.3