--On Friday, March 07, 2003 10:14:41 +0100 Thomas Linden <[EMAIL PROTECTED]> wrote:

would it be difficult to implement the possiblity to let ctwm
scale background images so that they fit the current resolution?

You *should* be able to do something like this (based on the WorkSpaces example in the ctwm man page):


WorkSpaces {
"One" {"#686B9F" "white" "DeepSkyBlue3" "white" "xlogo16"}
"Two" {"#619AAE" "white" "firebrick"}
"Three" {"#727786" "white" "MidnightBlue" "white" "xpm:ball%.xpm"}
-> "Four" {"#727786" "white" "white" "white" "|pbmupc 0 72890 00011|pnmscale -xsize=WIDTH -ysize=HEIGHT|pnmtoxwd"}


"Five" {"#727786" "white" "DeepSkyBlue3" "white" "plaid"}
"Six" {"#619AAE" "white" "DeepSkyBlue3" "white" "xpm:background1"}
"Seven" {"#8C5b7A" "white" "chartreuse4"}
"Eight" {"#686B9F" "white" "MidnightBlue"}
}


The important part shown by the "->" is the use of HEIGHT and WIDTH macros to scale the background image. (For this example, you must first use "changecom()" to avoid m4's interpretation of the "#" character as a comment.)

For some reason ctwm-3.6 isn't showing me the image though. I'll have to see whether this works with 3.7-alpha.

Rudy

Reply via email to