[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RP] load frames and xterms on startup

From: Sven . Hartrumpf
Subject: Re: [RP] load frames and xterms on startup
Date: Thu, 01 Nov 2007 11:21:43 +0100 (CET)

Thu, 1 Nov 2007 10:03:55 +0100, ckieft wrote:

> How do you load your apps on startup?

There are many ways. Here is my favorite way:

I have a 'rpinit' script that is called from .ratpoisonrc with:

exec rpinit

rpinit contains lines like the following
(you can ignore the lines with rpfs; they belong to
a frameset extension).

rpfs 1 # one big gvim
rpe gvim "gvim -S"
rpfs 2 # four terminals
rpe term1 urxvt
ratpoison -c "vsplit"
ratpoison -c "hsplit"
ratpoison -c "focusright"
rpe term2 urxvt
ratpoison -c "focusdown"
ratpoison -c "hsplit"
rpe term3 urxvt
ratpoison -c "focusright"
rpe term4 urxvt
rpfs 3 # two terminals side by side
rpe term5 urxvt
ratpoison -c "hsplit"
ratpoison -c "focusright"
rpe term6 urxvt
rpfs 4 # and only one terminal
rpe term7 urxvt

The idea is that I issue splitting and focus-moving commands
and start application under a given title, e.g.
rpe term7 urxvt
starts the urxvt terminal with the title term7.

And rpe is a script like the following:

xtoolwait $*
if [ $? -eq 0 ]; then
  # start succeeded
  ratpoison -c "title $title"


Attachment: pgp_KFrV3YaW9.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]