aboutsummaryrefslogtreecommitdiff
path: root/old/xprop-active-window-id
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-12-10 17:59:13 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2024-12-10 17:59:13 +0100
commit32aaecc3f69fcb6cf9063897eb62e34095267e9f (patch)
tree3600bb4f89c9fc7aba9321ef973697798f25adf8 /old/xprop-active-window-id
parent60643f945cc58565a0ca8ee9f5ec554fa41bd0d9 (diff)
downloadscripts-32aaecc3f69fcb6cf9063897eb62e34095267e9f.tar.gz
scripts-32aaecc3f69fcb6cf9063897eb62e34095267e9f.zip
Forgot stuff
Diffstat (limited to 'old/xprop-active-window-id')
-rwxr-xr-xold/xprop-active-window-id6
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
6xprop -root | grep _NET_ACTIVE_WINDOW | head -1 | sed 's/.* //'

Generated with cgit - Back to sebastiano.tronto.net