diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-12-10 17:59:13 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-12-10 17:59:13 +0100 |
| commit | 32aaecc3f69fcb6cf9063897eb62e34095267e9f (patch) | |
| tree | 3600bb4f89c9fc7aba9321ef973697798f25adf8 /old | |
| parent | 60643f945cc58565a0ca8ee9f5ec554fa41bd0d9 (diff) | |
| download | scripts-32aaecc3f69fcb6cf9063897eb62e34095267e9f.tar.gz scripts-32aaecc3f69fcb6cf9063897eb62e34095267e9f.zip | |
Forgot stuff
Diffstat (limited to 'old')
| -rwxr-xr-x | old/xprop-active-window-id | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/old/xprop-active-window-id b/old/xprop-active-window-id new file mode 100755 index 0000000..97cf60f --- /dev/null +++ b/old/xprop-active-window-id | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Get the ID of the current active window (hexadecimal) | ||
| 4 | # Requires: xprop | ||
| 5 | |||
| 6 | xprop -root | grep _NET_ACTIVE_WINDOW | head -1 | sed 's/.* //' | ||
