srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/linux/linux-commands.md
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2023-01-04 16:40:28 +0200
committersrdusr <[email protected]>2023-01-04 16:40:28 +0200
commit690894ae226a6422fc54536eea0e1574ef70327f (patch)
tree72aed6c6385d98c2521b426c239612c483db5eea /linux/linux-commands.md
parentdd14a121ea9d1f4339ee1cd9e7a23129655fd5bb (diff)
downloadnotes-690894ae226a6422fc54536eea0e1574ef70327f.tar.gz
notes-690894ae226a6422fc54536eea0e1574ef70327f.zip
Getting information about a window
Diffstat (limited to 'linux/linux-commands.md')
-rw-r--r--linux/linux-commands.md8
1 files changed, 8 insertions, 0 deletions
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
+- - -
+