From 690894ae226a6422fc54536eea0e1574ef70327f Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 4 Jan 2023 16:40:28 +0200 Subject: Getting information about a window --- linux/linux-commands.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'linux') diff --git a/linux/linux-commands.md b/linux/linux-commands.md index 433e25d..52695f1 100644 --- a/linux/linux-commands.md +++ b/linux/linux-commands.md @@ -27,3 +27,11 @@ NOTE: `.` can also be used but is limited or `$ echo "text" 2>&1 | tee output-file` # print text without executing a command - - - + +#### Getting information about a window + - To get id, size, position, state, class, etc... + `$ xwininfo` + or + `$ xdotool getwindowfocus getwindowgeometry` # just get size/position +- - - + -- cgit v1.2.3