ratpoison-devel
[Top][All Lists]
Advanced

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

Re: [RP] is-wm-query


From: twb
Subject: Re: [RP] is-wm-query
Date: Sat Sep 27 17:53:13 2003

On Thu, 25 Sep 2003 00:11:24 -0700Shawn Betts <address@hidden> wrote:

> twb <address@hidden> writes:
> 
> > What I want is to bind stuff like:
> > 
> > `if (WM=RP); then ratpoison -c 'colon exec dillo 
> > http://gooogle.com.au/search?q='; else dillo http://google.com.au/search; 
> > fi`
> 
> Can you add a little hack to write a file /tmp/wm that contains some
> cryptic piece of text that means aye or nay wrt ratpoison when you
> switch WMs? Why not just have:

It can't just be /tmp/wm, because that's not multi-user.  Also can't be
$HOME/.wm, because one can (and I do) run multiple X servers.  I was
thinking of setting a made-up an X resource, and checking it with xrdb. 
Can you have different WMs for each screen?

I'd also have to be careful about *removing* it, because I tend to kill
ratpoison in interesting ways.

> `dillo http://google.com.au/search`
> 
> Why run it through ratpoison?

Because you type the rest of the search (or whatever) on the, er,
minibuffer, so dillo starts with the results rather than having to go
thru the google homepage.  You could do it with gdialog or something, but then
it's noticably slower.

> > I was  hoping there'd be  some X Resource  or something that  I didn't
> > know about.
> 
> Time for some sweet hacks by the sounds of things :)

I'll try to overcome my inherent laziness.  :)

-trent
-- 
 When  you say 'I  wrote a  program that  crashed Windows',  people just
 stare at  you blankly and  say 'Hey, I  got those with the  system, for
 free' -- Linus Torvalds



reply via email to

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