dots-of-war/files/scripts/findWindowInfo.sh

9 lines
272 B
Bash
Raw Normal View History

2020-06-21 12:41:26 +02:00
#! /bin/sh
2020-10-30 22:02:38 +02:00
2020-06-21 12:41:26 +02:00
exec xprop -notype \
-f WM_NAME 8s ':\n title =\? $0\n' \
-f WM_CLASS 8s ':\n appName =\? $0\n className =\? $1\n' \
-f WM_WINDOW_ROLE 8s ':\n stringProperty "WM_WINDOW_ROLE" =\? $0\n' \
WM_NAME WM_CLASS WM_WINDOW_ROLE \
2020-10-30 22:02:38 +02:00
"${1+"$@"}"