[vox-tech] conditional .gtkrc-2.0

Ken Bloom vox-tech@lists.lugod.org
Thu, 29 Apr 2004 23:29:38 -0700


--jRHKVT23PllUwdXP
Content-Type: text/plain; Format=Flowed; DelSp=Yes; charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable


On 2004.04.29 20:43, Dave Margolis wrote:
> OK,
>=20
> I like that idea.  I'm going to need to:
> 1. test and see if .gtkrc-2.0 exists, if so remove it
> 2. determine which host i'm logged in from
> 3. create a symlink from the correct file to .gtkrc-2.0
>=20
> Here's a dumb question: What environment variable or program tells me =20
> where I'm logged in from?
>=20
> Dave

[bloom@kabloom ~]$ who am i
bloom    pts/12       Apr 29 23:25 (pc12.cs.ucdavis.edu)

If you're logged in locally, there will be no field with parentheses.
You can try awk, cut, or sed tricks to narrow down the line of text.

note that this is different from
[bloom@kabloom ~]$ whoami
bloom


>=20
> Mark K. Kim wrote:
>=20
>> Create two different files, .gtkrc-2.0-laptop and .gtkrc-2.0-desktop, =
=20
>> and
>> at login, using a script, determine which computer you're connecting =20
>> from
>> and make a symlink to .gtkrc-2.0 from the appropriate file!  It's like
>> magic...
>>=20
>> -Mark
>>=20
>>=20
>> On Thu, 29 Apr 2004, Dave Margolis wrote:
>>=20
>> =20
>>> Hello,
>>>=20
>>> I generally run gaim via ssh -X from my computer at home on my computer
>>> at work.  This works just spiffily except the fonts show up quite a bit
>>> smaller on my laptop (12" 1024x768) then the do on my actual box at =20
>>> home
>>> (15" 1024x768).
>>>=20
>>> I tried adding the following to .gtkrc-2.0 to increase the font size:
>>>=20
>>> gtk-font-name =3D "Lucida Grande 14"
>>>=20
>>> This looks great on the little laptop screen, but HUGE on the desktop
>>> screen.  It also messes with proportions of the fonts in Mozilla on the
>>> desktop machine.
>>>=20
>>> Question is this: how can I specify that font declaration just for =20
>>> gaim,
>>> or better yet, just for gaim when it's running over a remote X session?
>>>=20
>>> Thanks,
>>> Dave M.
>>>=20
>>>=20
>>>=20
>>> _______________________________________________
>>> vox-tech mailing list
>>> vox-tech@lists.lugod.org
>>> http://lists.lugod.org/mailman/listinfo/vox-tech
>>>=20
>>>
>>=20
>>
>=20
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
--=20
I usually have a GPG digital signature included as an attachment.
See http://www.gnupg.org/ for info about these digital signatures.
My key was last signed 10/14/2003. If you use GPG *please* see me about
signing the key. ***** My computer can't give you viruses by email. ***

--jRHKVT23PllUwdXP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBAkfJRlHapveKyytERAtIcAKCEusU+nm8pWmErazw751RmK5O6SgCbBZ36
RfoyAPHgHXtmTyJ3ocQ/O5M=
=Rrok
-----END PGP SIGNATURE-----

--jRHKVT23PllUwdXP--