I'm trying to get tmux to start automatically when I open xfce4-terminal in awesome. I tried
terminal = "xfce4-terminal -e \'zsh -l -c \"tmux -q has-session && exec tmux attach-session -d || exec tmux new-session -n$USER -s$USER@$HOSTNAME\"\'"
in my rc.lua but I can't open more than 1 xfce4-terminal at a time. if i press mod4+enter, it opens a terminal, but then if i do it again it the window thats already open just flashes. if i switch to a different tag and do mod4+enter, the xfce4-terminal that was open on the other tag switches to the tag i'm on, but a new terminal doesn't open.
my mistake. thats what that line is supposed to do. i'm a bit unsure if its how i want things to work though.
Your code is correct in that it launches a terminal session w/ Tmux. As far as awesome I am not familiar. If you dumped into your .xinitrc less the terminal = and adding & at the end you should be set.
Life is pleasant. Death is peaceful. It's the transition that's troublesome. Isaac Asimov - / - My Pastebin