diff options
author | Brandon S Allbery KF8NH <allbery.b@gmail.com> | 2011-02-24 03:49:37 +0100 |
---|---|---|
committer | Brandon S Allbery KF8NH <allbery.b@gmail.com> | 2011-02-24 03:49:37 +0100 |
commit | 5328e0918c3995bb6355670b44805b3853684f41 (patch) | |
tree | 7a970dbde5b6b3dfff83a3ff1353842576822f15 | |
parent | 302efadffa33887145a598a0a56903e37c3e65f6 (diff) | |
download | XMonadContrib-5328e0918c3995bb6355670b44805b3853684f41.tar.gz XMonadContrib-5328e0918c3995bb6355670b44805b3853684f41.tar.xz XMonadContrib-5328e0918c3995bb6355670b44805b3853684f41.zip |
Script to simplify getting ManageHook information from a window
Ignore-this: ef0e0089dca94c7c2321f791d5d7ffe
darcs-hash:20110224024937-8238f-970aab5c39cfe6fe3a39ef465f1662a894d959bf.gz
-rwxr-xr-x | scripts/window-properties.sh | 15 | ||||
-rw-r--r-- | xmonad-contrib.cabal | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/scripts/window-properties.sh b/scripts/window-properties.sh new file mode 100755 index 0000000..683a6b8 --- /dev/null +++ b/scripts/window-properties.sh @@ -0,0 +1,15 @@ +#! /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+"$@"} diff --git a/xmonad-contrib.cabal b/xmonad-contrib.cabal index fd2bdfc..c52b357 100644 --- a/xmonad-contrib.cabal +++ b/xmonad-contrib.cabal @@ -22,6 +22,7 @@ license-file: LICENSE author: Spencer Janssen maintainer: spencerjanssen@gmail.com extra-source-files: README scripts/generate-configs scripts/run-xmonad.sh + scripts/window-properties.sh scripts/xinitrc scripts/xmonad-acpi.c scripts/xmonad-clock.c tests/test_SwapWorkspaces.hs tests/test_XPrompt.hs |