xdotool lets you programmatically simulate keyboard input and mouse activity, move and resize windows, etc.
To search for an application with title name, run
xdotool search --name TEXT_TO_SERCH_HERE
This will return ID of the windows. You can use xwininfo command to view information about the application window.
Example
boby@hon-pc-01:~ $ xdotool search --name RuneScape 77594631 boby@hon-pc-01:~ $ xwininfo -id 77594631 xwininfo: Window id: 0x4a00007 "RuneScape" Absolute upper-left X: 65 Absolute upper-left Y: 24 Relative upper-left X: 0 Relative upper-left Y: 0 Width: 1855 Height: 1056 Depth: 24 Visual: 0x21 Visual Class: TrueColor Border width: 0 Class: InputOutput Colormap: 0x20 (installed) Bit Gravity State: NorthWestGravity Window Gravity State: NorthWestGravity Backing Store State: NotUseful Save Under State: no Map State: IsViewable Override Redirect State: no Corners: +65+24 -0+24 -0-0 +65-0 -geometry 1855x1056-0-0 boby@hon-pc-01:~ $
Leave a Reply