Discussion:
xrm resource string synax help
(too old to reply)
Dan Rawson
2004-01-19 16:34:53 UTC
Permalink
This was posted last week to comp.windows.x, but I didn't see an answer there . . . If I should be asking (or looking)
some other place, please let me know!

I'm attempting to change the appearance of an application from the command-line using "-xrm resource" with no success . . .

For the purposes of this experiment, I was using xclock:

$ xclock -d -xrm "clientDecoration: none"

as an example. I've tried numerous variations, including the version that's in my .Xresources file:

Dtwm*XClock*clientDecoration: none

but none of them change the appearance.

What's the correct syntax for this??

Thanks!

Dan
Michael Meissner
2004-01-21 19:12:39 UTC
Permalink
Post by Dan Rawson
This was posted last week to comp.windows.x, but I didn't see an answer there . . . If I should be asking (or looking)
some other place, please let me know!
I'm attempting to change the appearance of an application from the command-line using "-xrm resource" with no success . . .
$ xclock -d -xrm "clientDecoration: none"
Dtwm*XClock*clientDecoration: none
but none of them change the appearance.
What's the correct syntax for this??
I suspect the problem is your window manager probably only reads the resources
when it starts up, so changing the client decoration when you start the app
won't work. I can change the Geometry of xclock by using:

$ xclock -xrm 'xclock*Geometry: 100x100'&
--
Michael Meissner
email: ***@the-meissners.org
http://www.the-meissners.org
Dan Rawson
2004-01-22 11:13:29 UTC
Permalink
Post by Michael Meissner
Post by Dan Rawson
This was posted last week to comp.windows.x, but I didn't see an answer there . . . If I should be asking (or looking)
some other place, please let me know!
I'm attempting to change the appearance of an application from the command-line using "-xrm resource" with no success . . .
$ xclock -d -xrm "clientDecoration: none"
Dtwm*XClock*clientDecoration: none
but none of them change the appearance.
What's the correct syntax for this??
I suspect the problem is your window manager probably only reads the resources
when it starts up, so changing the client decoration when you start the app
$ xclock -xrm 'xclock*Geometry: 100x100'&
Hmm . . . I'll give it a try. I'm (mostly) trying to do this under Gnome on Solaris, so that means the WM is metacity;
I'll fire up CDE and see if it works . . .

If I understand the X documentation correctly, the command-line resources are SUPPOSED to over-ride those in the database.

Thanks!
Dan Rawson
2004-01-22 12:04:15 UTC
Permalink
Post by Michael Meissner
Post by Dan Rawson
I'm attempting to change the appearance of an application from the command-line using "-xrm resource" with no success . . .
$ xclock -d -xrm "clientDecoration: none"
I suspect the problem is your window manager probably only reads the resources
when it starts up, so changing the client decoration when you start the app
$ xclock -xrm 'xclock*Geometry: 100x100'&
Michael -

This appears to be a problem with the clientDecoration resource ONLY:

Under both dtwm (CDE) and metacity (GNOME):

xclock -xrm 'xclock*font: 9x15' -xrm 'xclock*analog: False'

produces a digital clock with a large font.

None of the client decoration resources seem to have any effect on the
command line. I also tried changing the 'transientDecoration' resources
(getting desperate here . . . .) with no effect.

Note that metacity has an additional problem; under CDE I can put the
clientDecoration resource in my .Xdefaults file and have it recognized,
but that FAILS for metacity (this is metacity 2.4.1).

Dan

Loading...