SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2014-09-28 15:06:07

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 719
Website

[SOLVED] tmux 9menu entry

Hi tmux experts  wink

My 9menu entry for tmux is;

tmux :urxvtc -e tmux

This launches tmux OK no problem..but in the ~/.9menu directory.

How do I get tmux to launch in the $HOME directory?

Last edited by chameleon (2014-09-28 16:40:00)

Offline

Help fund CrunchBang, donate to the project!

#2 2014-09-28 15:09:55

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [SOLVED] tmux 9menu entry

urxvtc -e tmux new-session -c $HOME

Last edited by Head_on_a_Stick (2014-09-28 15:35:53)

Offline

#3 2014-09-28 15:50:52

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 719
Website

Re: [SOLVED] tmux 9menu entry

@Head_on_a_Stick
Sorry does not launch tmux.

From a terminal;

live@dwmx:~$ tmux new-session -c $HOME
tmux: unknown option -- c
usage: new-session [-d] [-n window-name] [-s session-name] [-t target-session] [-x width] [-y height] [command]

Offline

#4 2014-09-28 15:59:20

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [SOLVED] tmux 9menu entry

empty@Arch ~ % pacman -Q tmux
tmux 1.9_a-1

Last edited by Head_on_a_Stick (2014-09-28 16:01:11)

Offline

#5 2014-09-28 16:13:46

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [SOLVED] tmux 9menu entry

To attach version 1.9 of tmux to any extant sessions use:

urxvtc -e bash -c "tmux -q has-session && exec tmux attach-session -d || exec tmux new-session -c $HOME"

smile

Offline

#6 2014-09-28 16:20:15

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 719
Website

Re: [SOLVED] tmux 9menu entry

 urxvtc -e tmux new-session -c $HOME.

Last edited by chameleon (2014-09-28 16:25:45)

Offline

#7 2014-09-28 16:31:22

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [SOLVED] tmux 9menu entry

Offline

#8 2014-09-28 16:39:33

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 719
Website

Re: [SOLVED] tmux 9menu entry

Agh! I forgot about changes to tmux needing a reboot!
well, actually I just issued;

killall tmux

and then tmux bpo v1.9-6~bpo70+1 was running.

I then added your code to 9menu and bingo tmux is starting @ $HOME  cool

Have a happy Sunday Head_on_a_Stick  wink

Offline

#9 2014-09-28 16:45:45

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [SOLVED] tmux 9menu entry

Good stuff -- you too chameleon big_smile

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo