You are not logged in.

#1 2013-02-25 07:00:38

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 604
Website

xfce4-terminal, zsh, and tmux

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.

Offline

#2 2013-02-25 07:33:29

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 604
Website

Re: xfce4-terminal, zsh, and tmux

my mistake. thats what that line is supposed to do. i'm a bit unsure if its how i want things to work though.

Offline

#3 2013-02-25 10:50:24

jv2112
Member
Registered: 2011-07-23
Posts: 154

Re: xfce4-terminal, zsh, and tmux

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

Offline

Board footer

Powered by FluxBB