Anthony Thyssen <[EMAIL PROTECTED]> writes:
> My problem is varible screen sizes. I use the same setup files for
> screens ranging from 600x400 to 1900x1200 [...] multiple flavors of
> linux [...]
Same here. That's one of the reasons I very much like to stick to ctwm
as long as possible. Hmmm, sounds like self-chosen vendor lock-in ;-).
Fortunately, both ctwm and xrdb provide pre-processing facilities, so
I have code fragements in my .Xdefaults like:
#if WIDTH >= 1600
#define DEFAULT_FONT
-dec-terminal-medium-r-normal--14-140-75-75-c-80-iso8859-15
#else
#if WIDTH >= 1280 && HEIGHT > 800
#define DEFAULT_FONT
-dec-terminal-medium-r-normal--14-140-75-75-c-80-iso8859-15
#else
#define DEFAULT_FONT
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-15
#endif
#endif
Typical ctwmrc fragments:
syscmd([test -r /dev/scanner])ifelse(sysval,0,
define([HAVE_ScannerMenu])
Menu "ScannerMenu" {
"Scanner" f.title
...
}
)dnl
syscmd([test -r
/spare6/tmp/VirtualAppliancesMySQL/VirtualAppliancesMySQL.vmx])ifelse(sysval,0,
define([HAVE_VA_MySQLMenu])
Menu "VAMySQLMenu" {
"MySQL VA" f.title
...
}
)dnl
Menu "ExecMenu"
{
"Execute" f.title
...
ifdef([HAVE_VA_MySQLMenu],
"MySQL VA" f.menu "VAMySQLMenu"
)
ifdef([HAVE_ScannerMenu],
"Scanner" f.menu "ScannerMenu"
)
...
}
I've yet to see a good (and feasible) suggestion to do this with Gnome
or KDE...
-- Johan