Crate x_win

Source

Structs§

IconInfo
Struct to store Icon information
ProcessInfo
Struct to store process information of the window
UsageInfo
Struct to store usage data of the window
WindowInfo
Struct to store all informations of the window
WindowPosition
Struct to store position and size of the window

Traits§

Api

Functions§

disable_extension
Disable Gnome extensions required for Linux using Gnome > 41. This function will disable extension needed to correctly detect working windows with Wayland desktop environment.
empty_entity
enable_extension
Enable Gnome extensions required for Linux using Gnome > 41. This function will enable extension needed to correctly detect working windows with Wayland desktop environment.
get_active_window
Retrieve information the about currently active window. Return WindowInfo containing details about a specific active window.
get_browser_url
Recover browser url of window. Return String
get_open_windows
Retrieve information about the currently open windows. Return Vec<WindowInfo> each containing details about a specific open window.
get_window_icon
Recover icon of window. Return IconInfo
install_extension
Install “@mininben90/x-win” Gnome extensions required for Linux using Gnome > 41. This function will write extension files needed to correctly detect working windows with Wayland desktop environment. Restart session will be require to install the gnome extension.
os_name
To know the os
uninstall_extension
Uninstall “@mininben90/x-win” Gnome extensions. This function will disable and remove extension files. Restart session will be require to remove the gnome extension.

Type Aliases§

Result