scripts

Various scripts for UNIX-like systems
git clone https://git.tronto.net/scripts
Download | Log | Files | Refs | README

xprop-active-window-id (150B)


      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/.* //'