Bamf.Matcher¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class Bamf.Matcher(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod get_default()¶
- Returns:
A new
Bamf.Matcher- Return type:
Returns the default matcher. This matcher is owned by bamf and shared between other callers.
- get_active_application()¶
- Returns:
The active
Bamf.Application.- Return type:
Used to fetch the active
Bamf.Application.
- get_active_window()¶
- Returns:
The active
Bamf.Window.- Return type:
Used to fetch the active
Bamf.Window.
- get_application_for_desktop_file(desktop_file_path, create_if_not_found)¶
- Parameters:
desktop_file_path (
str) – Path to the desktop filecreate_if_not_found (
bool) – Create aBamf.Applicationif one isn’t found
- Returns:
A
Bamf.Applicationfor given desktop file.- Return type:
- get_application_for_window(window)¶
- Parameters:
window (
Bamf.Window) – The window to look for- Returns:
The
Bamf.Applicationrepresenting the xid passed, orNoneif none exists.- Return type:
Used to fetch the
Bamf.Applicationcontaining the passed window.
- get_application_for_xid(xid)¶
- Parameters:
xid (
int) – The XID to search for- Returns:
The
Bamf.Applicationrepresenting the xid passed, orNoneif none exists.- Return type:
Used to fetch the
Bamf.Applicationcontaining the passed xid.
- get_applications()¶
- Returns:
A list of
Bamf.Application's.- Return type:
Used to fetch all
Bamf.Application's running or not. Application authors who wish to only see running applications should useBamf.Matcher.get_running_applicationsinstead. The reason this method is needed is bamf will occasionally track applications which are not currently running for nefarious purposes.
- get_running_applications()¶
- Returns:
A list of
Bamf.Application's.- Return type:
Used to fetch all
Bamf.Application's which are running.
- get_window_for_xid(xid)¶
- Parameters:
xid (
int) – The X11 Window ID to search for- Returns:
The
Bamf.Windowrepresenting the xid passed, orNoneif none exists.- Return type:
Used to fetch the
Bamf.Windowthat wraps the given window.
- get_window_stack_for_monitor(monitor)¶
- Parameters:
monitor (
int) – the monitor you want the stack from, negative value to get all- Returns:
A list of
Bamf.Window's.- Return type:
Used to fetch all windows that BAMF knows about in the requested screen, in stacking bottom-to-top order. If the monitor is set to a negative value, then it fetches all the available windows in all monitors.
- get_windows()¶
- Returns:
A list of
Bamf.Window's.- Return type:
Used to fetch all windows that BAMF knows about.
- get_xids_for_application(desktop_file)¶
-
Used to fetch all xid’s associated with an application. Useful for performing window
Signal Details¶
- Bamf.Matcher.signals.active_application_changed(matcher, object, p0)¶
- Signal Name:
active-application-changed- Flags:
- Parameters:
matcher (
Bamf.Matcher) – The object which received the signalobject (
Bamf.Application) –p0 (
Bamf.Application) –
- Bamf.Matcher.signals.active_window_changed(matcher, object, p0)¶
- Signal Name:
active-window-changed- Flags:
- Parameters:
matcher (
Bamf.Matcher) – The object which received the signalobject (
Bamf.Window) –p0 (
Bamf.Window) –
- Bamf.Matcher.signals.stacking_order_changed(matcher)¶
- Signal Name:
stacking-order-changed- Flags:
- Parameters:
matcher (
Bamf.Matcher) – The object which received the signal
- Bamf.Matcher.signals.view_closed(matcher, object)¶
- Signal Name:
view-closed- Flags:
- Parameters:
matcher (
Bamf.Matcher) – The object which received the signalobject (
Bamf.View) –
- Bamf.Matcher.signals.view_opened(matcher, object)¶
- Signal Name:
view-opened- Flags:
- Parameters:
matcher (
Bamf.Matcher) – The object which received the signalobject (
Bamf.View) –