=== modified file 'tmux-autoattach' --- tmux-autoattach 2016-08-16 01:04:23 +0000 +++ tmux-autoattach 2014-10-08 09:51:41 +0000 @@ -22,16 +22,10 @@ $(wmctrl -l | sed -n "/tmux::[^:]*:$USER@$HOST/{ s/.*tmux::\([^:]*\):$USER@$HOST.*/\1 1/; p }") ) -if wmctrl -m | grep -q 'Name: i3'; then - is_i3=1 -else - is_i3=0 -fi - tmux list-sessions -F "#{session_name}" | \ while read session; do if ! (($+attached[$session])); then - if (($+sessions[$session] && ! $is_i3)); then + if (($+sessions[$session])); then # not all windowmanagers support moving windows via wmctrl, so we # switch to desired workspace before spawning the terminal wmctrl -s $sessions[$session]