config question
Would their be a way to configure mutt to test if I am running X, and based off the exit of this, 1 or 0, use a particular mutt variable setting? -- /Jason G Helfman "At any given moment, you may find the ticket to the circus that has always been in your possession." Fingerprint: 6A32 3774 E390 33B5 8C96 2AA1 2BF4 BD71 35A1 C149 GnuPG http://www.gnupg.org Get Private! 1024D/35A1C149
Re: config question
*[Jason Helfman on Thu, Sep 07, 2000 at 11:15:18PM -0700]: > Would their be a way to configure mutt to test if I am running X, and > based off the exit of this, 1 or 0, use a particular mutt variable > setting? Like say using gvim instead of vim in the editor? Man test, using backticks ;) -- Suresh Ramasubramanian + Wallopus Malletus Indigenensis mallet @ cluestick.org + Lumber Cartel of India, tinlcI Dime is money.
Re: config question
On Thu, Sep 07, 2000 at 11:15:18PM -0700, Jason Helfman wrote: > Would their be a way to configure mutt to test if I am running X, and > based off the exit of this, 1 or 0, use a particular mutt variable > setting? Something like this? set editor=`RunningX && echo gvim || echo vim` Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | RF Communications Product Generation Unit | Spokane, Washington, USA
Re: config question
On 2000.09.08, in <[EMAIL PROTECTED]>, "Gary Johnson" <[EMAIL PROTECTED]> wrote: > On Thu, Sep 07, 2000 at 11:15:18PM -0700, Jason Helfman wrote: > > Would their be a way to configure mutt to test if I am running X, and > > based off the exit of this, 1 or 0, use a particular mutt variable > > setting? > > Something like this? > > set editor=`RunningX && echo gvim || echo vim` Or: source `RunningX && echo .muttrc.x || echo /dev/null if you have a lot of things to vary. -- -D.[EMAIL PROTECTED]NSITUniversity of Chicago
Re: config question
On Fri, Sep 08, 2000 at 01:05:38PM -0500, David Champion muttered: | On 2000.09.08, in <[EMAIL PROTECTED]>, | Or: | source `RunningX && echo .muttrc.x || echo /dev/null | | if you have a lot of things to vary. | | -- | -D. [EMAIL PROTECTED]NSITUniversity of Chicago | What is this all about, RunningX ? is this a process? -- /Jason G Helfman "At any given moment, you may find the ticket to the circus that has always been in your possession." Fingerprint: 6A32 3774 E390 33B5 8C96 2AA1 2BF4 BD71 35A1 C149 GnuPG http://www.gnupg.org Get Private! 1024D/35A1C149
Re: config question
Jason -- ...and then Jason Helfman said... % On Fri, Sep 08, 2000 at 01:05:38PM -0500, David Champion muttered: % | On 2000.09.08, in <[EMAIL PROTECTED]>, % | Or: % | source `RunningX && echo .muttrc.x || echo /dev/null % % What is this all about, RunningX ? is this a process? Gee, I guess you haven't been here forever and a day, have you? :-) RunningX is a pretty clever utility that detects whether the calling process is *actually* running under X (as compared to just seeing if an X server is running, or if your display is set, or even if you're runnning an X server but all of which don't really matter). Check around the mutt.org site, maybe check the archives for mentions of the source, or try Brandon Long's web page or the contrib dir at the mutt ftp site. % -- % /Jason G Helfman % % "At any given moment, you may find the ticket to the circus that has always % been in your possession." % % Fingerprint: 6A32 3774 E390 33B5 8C96 2AA1 2BF4 BD71 35A1 C149 % GnuPG http://www.gnupg.org Get Private! 1024D/35A1C149 :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! The "new millennium" starts at the beginning of 2001. There was no year 0. Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh* PGP signature
Re: config question
On 2000.09.08, in <[EMAIL PROTECTED]>, "Jason Helfman" <[EMAIL PROTECTED]> wrote: > On Fri, Sep 08, 2000 at 01:05:38PM -0500, David Champion muttered: > | On 2000.09.08, in <[EMAIL PROTECTED]>, > | Or: > | source `RunningX && echo .muttrc.x || echo /dev/null > | > | if you have a lot of things to vary. > > What is this all about, RunningX ? is this a process? I just copied what Gary said, but RunningX is a program that checks whether you're running X. It amounts to the attached code. Run it through shell and it produces "ifx" in the cwd which does the same thing. Whee, that was fun. :) -- -D.[EMAIL PROTECTED]NSITUniversity of Chicago ifx.sh
Re: config question
On Fri, Sep 08, 2000 at 05:53:15PM -0500, David Champion muttered: | I just copied what Gary said, but RunningX is a program that checks | whether you're running X. | what package is this a part of? I have RedHat and mostly rpms installed. I am unable to find it via locate or find. -- /Jason G Helfman "At any given moment, you may find the ticket to the circus that has always been in your possession." Fingerprint: 6A32 3774 E390 33B5 8C96 2AA1 2BF4 BD71 35A1 C149 GnuPG http://www.gnupg.org Get Private! 1024D/35A1C149
Re: config question
On 2000-09-08 at 14:59 -0700 Jason Helfman sent off: > What is this all about, RunningX ? is this a process? > -- check out http://www.fiction.net/blong/programs/mutt/autoview/RunningX.c and have fun ... Björn -- Björn Jacke · E-Mail: [EMAIL PROTECTED] SuSE GmbH · Schanzäckerstr. 10 · 90443 Nürnberg · Germany