Skip to content

A small cross-platform utility crate to get the titles of all the open windows

Notifications You must be signed in to change notification settings

HiruNya/window_titles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

window_titles

window_titles is a small crossplatform utility crate with the only job of getting the titles of windows.

It supports:

  • Linux / x11: Using xcb to query the x11 server. (Safe)
  • Windows: Using winapi. (Possibly Unsafe)
  • MacOS: Using the osascript command. (Safe)

Usage is simple:

  1. Import both Connection and ConnectionTrait.
use window_titles::{Connection, ConnectionTrait};
  1. Initiate the connection (Only Linux can return an error for this method).
let connection = Connection::new()?;
  1. Get the window titles.
let titles: Vec<String> = connection.window_titles()?;

About

A small cross-platform utility crate to get the titles of all the open windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages