You are not logged in.

#1 2007-05-25 09:06:06

Greycloack
Member
Registered: 2004-03-05
Posts: 166

Reloading ratpoison frameset on startup [SOLVED]

Hello,
I have a general setup of frames I like when I'm using ratpoison.
Is there a way I can reload this setup each time I'm opening ratpoion? I tried using fdump and frestore but I think I'm just making a mess...

Also is there a way to load specific programs in that setup? for example : firefox in the top frame, xterm lower left and xterm with ncmpc on lower right?

Thanks for the help,
Grey

Last edited by Greycloack (2007-05-25 18:33:02)

Offline

#2 2007-05-25 11:13:53

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: Reloading ratpoison frameset on startup [SOLVED]

I thought about exactly the same things a few days ago. (Although I'm using dwm instead of ratpoison). I ended up installing kernel26suspend2 and using hibernation/suspend2disk. I'm quite happy with the shorter boot times but I know that this is not really what you asked for.

In dwm, there's also the possibility to configure the keybinding to launch programs so that the keystrokes launch the desired programs on certain specified "tags". (Which results in a behavior similarly to the one you wrote about, you'd just have to launch the apps after startup via the key combination you chose)

Cheers Sigi


Haven't been here in a while. Still rocking Arch. smile

Offline

#3 2007-05-25 12:14:35

Jansson
Member
From: Sweden
Registered: 2006-09-10
Posts: 106

Re: Reloading ratpoison frameset on startup [SOLVED]

Now, it's been a while since I played with ratpoison, but using 'hsplit' and 'vsplit'
in your configfile may be what you're looking for. Something like:

hsplit
firefox

then you'll have to find the command for sellecting another frame (sorry, but can't find it or remeber it>.<) Then

Select the lover screen command here
xterm
vsplit
xterm ncmpc

It's possible you'll have to set aliases for the programs.

All this in the .ratpoisonrc file

Again, this is taken from my poor memory, but it'll maybe help you in the right direction.

Last edited by Jansson (2007-05-25 12:15:44)

Offline

#4 2007-05-25 18:32:46

Greycloack
Member
Registered: 2004-03-05
Posts: 166

Re: Reloading ratpoison frameset on startup [SOLVED]

Thanks, that's what I needed - I added this code to my .ratpoisonrc :

exec firefox
vsplit 6/7
focusdown
exec xterm
hsplit 1/2
focusright
exec aterm -e  ncmpc
focusup

And it works like a charm :-)

Offline

Board footer

Powered by FluxBB