xdotool

xdotool lets you programmatically simulate keyboard input and mouse activity, move and resize windows, etc. To search for an application with title name, run

1xdotool 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

[email protected]:~ $ xdotool search –name RuneScape
77594631
[email protected]:~ $ 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 1855×1056-0-0

[email protected]:~ $

Leave a Comment

Your email address will not be published. Required fields are marked *

Hire a server Expert to resolve the issue Now.

Hire a server Expert to resolve the issue Now.

Resolve this issue in just 5$ from https://serverexpert.io

 

You have Successfully Subscribed!

Open chat