commit a6e7b27fd1df9657acc81ffc81a1c7918650d9df parent 5ac980dec555c543815d9defc3b7192354539b6c Author: Sebastiano Tronto <sebastiano.tronto@gmail.com> Date: Wed, 22 Dec 2021 11:06:46 +0100 Added script to get currently focused window id (using xprop). Diffstat:
M | Makefile | | | 1 | + |
A | xprop-active-window-id | | | 6 | ++++++ |
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -35,6 +35,7 @@ SCRIPTS = addressgrep \ xedit-filter \ xkboptions \ xplumb \ + xprop-active-window-id \ xwallpaper-random-notify install: diff --git a/xprop-active-window-id b/xprop-active-window-id @@ -0,0 +1,6 @@ +#!/bin/sh + +# Get the ID of the current active window (hexadecimal) +# Requires: xprop + +xprop -root | grep _NET_ACTIVE_WINDOW | head -1 | sed 's/.* //'