Discussion:
[Fluxbox-users] apps file question
Scott
2013-10-14 14:26:42 UTC
Permalink
I launch firefox in startup. In the apps file I have:

[app] (name=Navigator) (class=Firefox) (role=browser) {1}
[Workspace] {3}
[end]

That seems to work, and launches it in workspace 4.

Once launched, I browse to ckua.com (which I recommend if you love
good music!) and launch their player. It spawns a new Firefox window.
It gives the artist and title of the currently-playing tune, with stop
and pause buttons. I would like it to be in a small window visible on
all workspaces.

In using xprops, I see

WM_NAME(STRING) = "CKUA Radio - Mozilla Firefox"

So in the apps file I put:

[app] (name=Navigator) (title=CKUA.*)
[Dimensions] {528 217}
[Position] (UPPERLEFT) {4 773}
[Deco] {NONE}
[Sticky] {yes}
[Close] {yes}
[end]

This does not seem to work. It spawns as a new window on workspace 4,
non-sticky, with full deco.

Would appreciate any help!

Thanks,

Scott Swanson
Alexandre Domi
2013-10-14 17:04:13 UTC
Permalink
To have a correct syntax in the apps file, I'd recommend to use the right
click -> Remember option. If you do that for example for Position, Deco,
etc… you'll have an example of the correct configuration to have.
Not saying yours is incorrect, but it's been a long time since I've played
with that file.
Post by Scott
[app] (name=Navigator) (class=Firefox) (role=browser) {1}
[Workspace] {3}
[end]
That seems to work, and launches it in workspace 4.
Once launched, I browse to ckua.com (which I recommend if you love
good music!) and launch their player. It spawns a new Firefox window.
It gives the artist and title of the currently-playing tune, with stop
and pause buttons. I would like it to be in a small window visible on
all workspaces.
In using xprops, I see
WM_NAME(STRING) = "CKUA Radio - Mozilla Firefox"
[app] (name=Navigator) (title=CKUA.*)
[Dimensions] {528 217}
[Position] (UPPERLEFT) {4 773}
[Deco] {NONE}
[Sticky] {yes}
[Close] {yes}
[end]
This does not seem to work. It spawns as a new window on workspace 4,
non-sticky, with full deco.
Would appreciate any help!
Thanks,
Scott Swanson
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
Jean-Sébastien Kroll-Rabotin
2013-10-14 17:45:52 UTC
Permalink
with a MoveTo command, otherwise it does not do the work:

Mod4 C None K None U None A :MacroCmd {ResizeTo 528 217} {MoveTo 4 773 TopLeft} {SetDecor NONE} {Stick}
--
(o< -!
//\ Happy debian user !
V_/_ http://goodbye-microsoft.com/
Jean-Sébastien Kroll-Rabotin
2013-10-14 17:41:24 UTC
Permalink
Post by Scott
This does not seem to work. It spawns as a new window on workspace 4,
non-sticky, with full deco.
You cannot match using the title attribute in your case, as it is set
while Firefox is loading the content, that is after the window
creation. Maybe there is an X property that makes it possible to
distinguish between Firefox's regular windows and other roles (check
the “role” maybe), but I doubt it. And, anyway, it would apply the
rules to any website.

The best option here might be to set up a short cut that applies the
required settings on key press, like:

Mod4 C None K None U None A :MacroCmd {ResizeTo 528 217} {4 773 TopLeft} {SetDecor NONE} {Stick}

Just change this ugly key combo to something more useable.
--
(o< -!
//\ Happy debian user !
V_/_ http://goodbye-microsoft.com/
Scott
2013-10-15 00:44:13 UTC
Permalink
Post by Jean-Sébastien Kroll-Rabotin
You cannot match using the title attribute in your case, as it is set
while Firefox is loading the content, that is after the window
creation. Maybe there is an X property that makes it possible to
distinguish between Firefox's regular windows and other roles (check
the “role” maybe), but I doubt it. And, anyway, it would apply the
rules to any website.
Okay, I guess that makes sense now. So if a program is specifically
given a "title" *before* loading, then title will match, otherwise not?
Post by Jean-Sébastien Kroll-Rabotin
The best option here might be to set up a short cut that applies the
Mod4 C None K None U None A :MacroCmd {ResizeTo 528 217} {4 773 TopLeft} {SetDecor NONE} {Stick}
Yeah, I'll try that. But what is :MacroCmd going to be??!
Post by Jean-Sébastien Kroll-Rabotin
(o< -!
//\ Happy debian user !
V_/_ http://goodbye-microsoft.com/
Love the penguin!

Scott.

Loading...