You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

window-properties.sh 559B

123456789101112131415
  1. #! /bin/sh
  2. # Script to print common window properties in ManageHook format,
  3. # via xprop. All xprop options may be used, although anything other
  4. # than -display, -id, and -name is probably a bad idea.
  5. #
  6. # Written and placed into the public domain by Brandon S Allbery
  7. # KF8NH <allbery.b@gmail.com>
  8. #
  9. exec xprop -notype \
  10. -f WM_NAME 8s ':\n title =\? $0\n' \
  11. -f WM_CLASS 8s ':\n appName =\? $0\n className =\? $1\n' \
  12. -f WM_WINDOW_ROLE 8s ':\n stringProperty "WM_WINDOW_ROLE" =\? $0\n' \
  13. WM_NAME WM_CLASS WM_WINDOW_ROLE \
  14. ${1+"$@"}