aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile1
-rwxr-xr-xxprop-active-window-id6
2 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 827f0bd..756862b 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,7 @@ SCRIPTS = addressgrep \
35 xedit-filter \ 35 xedit-filter \
36 xkboptions \ 36 xkboptions \
37 xplumb \ 37 xplumb \
38 xprop-active-window-id \
38 xwallpaper-random-notify 39 xwallpaper-random-notify
39 40
40install: 41install:
diff --git a/xprop-active-window-id b/xprop-active-window-id
new file mode 100755
index 0000000..97cf60f
--- /dev/null
+++ b/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