You are not logged in.

#1 2010-02-17 03:52:09

ntness
Member
From: The World
Registered: 2009-12-29
Posts: 97

help me launch a tmux session from dmenu

Ok, I've created a tmux script that launches all the necessary applications I need for one workspace.

Code as follows:

#!/bin/zsh
tmux new-session -d -s hub "irssi -c H"
tmux split-window -v "irssi -c RZ"
tmux split-window -h "irssi -c FN"
tmux select-pane -t 0
tmux split-window -h "irssi -c UN"
tmux new-window newsbeuter
tmux new-window rtorrent
tmux new-window zsh
tmux select-window -t 1
tmux -2 attach-session -t hub

What I'm wanting to do is put this in /usr/bin so I can launch it from dmenu. However, using "urxvt -e" is not working, rather, it sends tmux to a background process. What do I need to do in order to get this script to run from dmenu? As always, appreciate the help.

-jd


transcend to the fifth abode

Offline

#2 2010-02-17 08:35:07

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: help me launch a tmux session from dmenu

You probably also need zsh -c, by the way you can launch urxvt only if necessary from within the script:
tty -s || exec urxvt -e zsh -c "$0"

Offline

Board footer

Powered by FluxBB