xmonad-contrib/scripts/window-properties.sh
Brandon S Allbery KF8NH 08c4c09fc5 Typo in window-properties.sh
Somewhere between my creating the original version of this script and
adding it to the tree, a backslash got lost.  It appears to have been
lost in the version I put on the wiki, so I suspect a copy-paste
problem at that point.
2011-04-13 05:30:02 +00:00

16 lines
559 B
Bash

#! /bin/sh
# Script to print common window properties in ManageHook format,
# via xprop. All xprop options may be used, although anything other
# than -display, -id, and -name is probably a bad idea.
#
# Written and placed into the public domain by Brandon S Allbery
# KF8NH <allbery.b@gmail.com>
#
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 \
${1+"$@"}