Discussion:
[Fluxbox-users] fluxbox apps - regex not working
Jason Houx
2013-01-30 14:40:12 UTC
Permalink
hi experts,

i have been banging my head against the wall to get a app file to
trigger for a specific application. the short of this is i am using
OWA (outlook web access) for strictly calendars for my company (i use
mutt/fetchmail for real email to put a stop to the flames before they
start). all i really want to do is have a firefox window that i can
have sticky and follow me around to workspaces and leave shaded so i
can hear the ding when a calendar event is eminent.

i am running:

***@phaedrus:~$ fluxbox -v
Fluxbox 1.3.2 : (c) 2001-2011 Fluxbox Team


and here is the xprop information for the window i am trying to catch

***@phaedrus:~$ xprop
_NET_WM_USER_TIME(CARDINAL) = 294725127
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_CHANGE_DESKTOP,
_NET_WM_ACTION_SHADE, _NET_WM_ACTION_STICK, _NET_WM_ACTION_RESIZE,
_NET_WM_ACTION_MOVE, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_MINIMIZE
_NET_FRAME_EXTENTS(CARDINAL) = 1, 1, 22, 4
_NET_WM_DESKTOP(CARDINAL) = 3
_FLUXBOX_GROUP_LEFT(WINDOW): window id # 0x0
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
bitmap id # to use for icon: 0x3400078
bitmap id # of mask for icon: 0x3400079
window id # of group leader: 0x3400001
WM_WINDOW_ROLE(STRING) = "browser"
XdndAware(ATOM) = BITMAP
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0

<snip ASCII icon>

_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 54526071
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x3400076
WM_CLIENT_LEADER(WINDOW): window id # 0x3400001
_NET_WM_PID(CARDINAL) = 4556
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLIENT_MACHINE(STRING) = "phaedrus"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified minimum size: 1 by 115
program specified maximum size: 32767 by 32767
window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS,
_NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "Navigator", "Firefox"
WM_ICON_NAME(STRING) = "Jason Houx (jahoux) - Outlook Web App - Nightly"
_NET_WM_ICON_NAME(UTF8_STRING) = "Jason Houx (jahoux) - Outlook Web
App - Nightly"
WM_NAME(STRING) = "Jason Houx (jahoux) - Outlook Web App - Nightly"
_NET_WM_NAME(UTF8_STRING) = "Jason Houx (jahoux) - Outlook Web App - Nightly"


here is the string i am trying to catch to make it sticky:



[app] (name=Navigator) (class=Firefox) (title=*.utlook.*) (role=browser)
[Sticky] {yes}
[end]




i have restarted fluxbox and done all kind of things to try and get
this to work. yes i have tried just


[app] *title=*.utlook.*)
[Sticky] {yes}
[end]


but nothing is working. i have other app configurations that are
working peach (full pastebin here http://pastebin.com/PZ1t0u92). i
have tried IRC experts but they used the same regex that i tried.
anybody know if this is breakage or how to debug this more, or i am
open to trying other suggestions


thanks,

-jh
Sven Michel
2013-01-30 18:02:12 UTC
Permalink
Hi there,

might be only a typo but if you use RegExes it should be:

title=.*utlook.*

not
title=*.utlook.*


Anyhow, cannot try it at the moment.
Will try later.

Regards,
tenner
Post by Jason Houx
hi experts,
i have been banging my head against the wall to get a app file to
trigger for a specific application. the short of this is i am using
OWA (outlook web access) for strictly calendars for my company (i use
mutt/fetchmail for real email to put a stop to the flames before they
start). all i really want to do is have a firefox window that i can
have sticky and follow me around to workspaces and leave shaded so i
can hear the ding when a calendar event is eminent.
Fluxbox 1.3.2 : (c) 2001-2011 Fluxbox Team
and here is the xprop information for the window i am trying to catch
_NET_WM_USER_TIME(CARDINAL) = 294725127
window state: Normal
icon window: 0x0
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_CHANGE_DESKTOP,
_NET_WM_ACTION_SHADE, _NET_WM_ACTION_STICK, _NET_WM_ACTION_RESIZE,
_NET_WM_ACTION_MOVE, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_MINIMIZE
_NET_FRAME_EXTENTS(CARDINAL) = 1, 1, 22, 4
_NET_WM_DESKTOP(CARDINAL) = 3
_FLUXBOX_GROUP_LEFT(WINDOW): window id # 0x0
Client accepts input or input focus: True
Initial state is Normal State.
bitmap id # to use for icon: 0x3400078
bitmap id # of mask for icon: 0x3400079
window id # of group leader: 0x3400001
WM_WINDOW_ROLE(STRING) = "browser"
XdndAware(ATOM) = BITMAP
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0
<snip ASCII icon>
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 54526071
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x3400076
WM_CLIENT_LEADER(WINDOW): window id # 0x3400001
_NET_WM_PID(CARDINAL) = 4556
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLIENT_MACHINE(STRING) = "phaedrus"
program specified minimum size: 1 by 115
program specified maximum size: 32767 by 32767
window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS,
_NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "Navigator", "Firefox"
WM_ICON_NAME(STRING) = "Jason Houx (jahoux) - Outlook Web App - Nightly"
_NET_WM_ICON_NAME(UTF8_STRING) = "Jason Houx (jahoux) - Outlook Web
App - Nightly"
WM_NAME(STRING) = "Jason Houx (jahoux) - Outlook Web App - Nightly"
_NET_WM_NAME(UTF8_STRING) = "Jason Houx (jahoux) - Outlook Web App - Nightly"
[app] (name=Navigator) (class=Firefox) (title=*.utlook.*) (role=browser)
[Sticky] {yes}
[end]
i have restarted fluxbox and done all kind of things to try and get
this to work. yes i have tried just
[app] *title=*.utlook.*)
[Sticky] {yes}
[end]
but nothing is working. i have other app configurations that are
working peach (full pastebin here http://pastebin.com/PZ1t0u92). i
have tried IRC experts but they used the same regex that i tried.
anybody know if this is breakage or how to debug this more, or i am
open to trying other suggestions
thanks,
-jh
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
Jason Houx
2013-01-30 20:15:39 UTC
Permalink
Post by Sven Michel
Hi there,
title=.*utlook.*
not
title=*.utlook.*
hi Sven

thanks for the response - i tried that and modified my configuration

[app] (name=Navigator) (class=Firefox) (title=.*utlook.*) (role=browser)
[Sticky] {yes}
[end]


but that didn't do it either =(

-jh

Loading...