Web browser X11 urgent flag boost

The global picture is that I want my Firefox X11 window to set its urgency flag when (say) new Gmail arrives.

I'm sure I can create code to check for the arrival of Gmails by reading the code for other Firefox extensions. I cannot figure out how to get the web browser window id so that I can call, say, an external program to raise the urgency flag (i.e. set XUrgencyHint).

Any help is appreciated; if my methodology (i.e. creating an extension) is not suitable, feel free to talk about it.

+3
source share
1 answer

Until you pointed out your programming / scripting language where you plan to use to find the Firefox window to install, I found this answer to SO to your exact question (both questions are essentially the same: find the ff window in x11).

In general, in firefox, each “tab container” is a window, and each tab is a window (therefore, you can load firefox ui inside firefox ui). This way you can search for firefox windows with a specific title or src / url.

.. gmail- firefox .. , . ( , :)?) ( " gmail" ) (-bar) ( FaceFox?) , javascript - ..).
:

+1

Source: https://habr.com/ru/post/1756803/


All Articles