On 12 Oct 2002 10:13:47 +0200, Grzegorz Nieweglowski wrote:
>
> BTW, there's another thing that puzzles me - is there a way to assign
> "Style" attributes to a single, perhaps not-quite-so-unique window?
Please start a separate thread with a relevant subject when asking new
questions. When you get dozens of messages daily, it helps a lot.
> I often have a couple (or so) xterms opened, which as far as I can tell
> have all identical atributes (Class/Name/Title etc.)
>
> I would hovewer find it usefull to have a keybinding that, say, turns
> the active windows "FixedPosition" state on. But the Style command
> accepts only name, class or resource strings, and with multiple xterms
> those strings are shared among all of those little pests. I know that
> I can force an xterm to change it's title to something unique, either
> with a command line/X resource option, or with an escape sequence at
> run-time, but that really isn't a solution. For a moment I thought that
> "Style xterm IndexedWindowName" could come usefull here, but it only
> changes the appearance of the titlebar, and so it does not influence the
> "Style" command... If only Style would support "$w" (WindowID)...
>
> Am I asking for the impossible, or have I just overlooked something
> obvious?
If something is only configurable using Style and you don't use the
unique id string, this is not possible yet. But setting Style on per
window basis (and not just on per id basis as it is now) is on to-do list.
Practically, it is often solvable without such functionality.
Just start all special xterms with -name YourUniqueId option (-n and -T
may work too) and configure Style YourUniqueId.
But of course, this is a statical solution, you ask for a dynamical one.
You may change the window name and icon name of xterm dynamically using:
printf "\033]1;MyNewIconTitleName\007"
printf "\033]2;MyNewWindowTitleName\007"
Then you should issue RecaptureWindow to reapply all Style settings to
xterm, or reissue the relevant Style commands with MyNewWindowTitleName.
Of course, only window-name affects Style, not icon-name.
You may force only unique window names using IndexedWindowName, like you
mentioned, but it's just the visible name that becomes unique, it is not
used in Style. So, this can't be used to apply dynamical Style changes.
Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sat Oct 12 2002 - 11:51:27 BST