Commit cbec1d77 authored by Tim O'Brien's avatar Tim O'Brien
Browse files

Add window ID fallback for windows.

- maybe someday use GetForegroundWindow() from User32.lib ...
parent 3d376bbd
......@@ -25,6 +25,8 @@ currentWindowId () {
xprop -root | awk '/NET_ACTIVE_WINDOW/ { print $5; exit }'
elif hash osascript 2>/dev/null; then #osx
osascript -e 'tell application (path to frontmost application as text) to id of front window' 2&> /dev/null
else
echo $EPOCHSECONDS #fallback for windows
fi
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment