summaryrefslogtreecommitdiff
path: root/scripts/old/xprop-active-window-id
blob: 97cf60fb5d5fb39d9b8ce6c0996951c744f62ef2 (plain)
1
2
3
4
5
6
#!/bin/sh

# Get the ID of the current active window (hexadecimal)
# Requires: xprop

xprop -root | grep _NET_ACTIVE_WINDOW | head -1 | sed 's/.* //'

Generated with cgit - Back to sebastiano.tronto.net