mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
Script to simplify getting ManageHook information from a window
This commit is contained in:
parent
864732dbdc
commit
4bcf636259
15
scripts/window-properties.sh
Normal file
15
scripts/window-properties.sh
Normal file
@ -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+"$@"}
|
@ -22,6 +22,7 @@ license-file: LICENSE
|
|||||||
author: Spencer Janssen
|
author: Spencer Janssen
|
||||||
maintainer: spencerjanssen@gmail.com
|
maintainer: spencerjanssen@gmail.com
|
||||||
extra-source-files: README scripts/generate-configs scripts/run-xmonad.sh
|
extra-source-files: README scripts/generate-configs scripts/run-xmonad.sh
|
||||||
|
scripts/window-properties.sh
|
||||||
scripts/xinitrc scripts/xmonad-acpi.c
|
scripts/xinitrc scripts/xmonad-acpi.c
|
||||||
scripts/xmonad-clock.c tests/test_SwapWorkspaces.hs
|
scripts/xmonad-clock.c tests/test_SwapWorkspaces.hs
|
||||||
tests/test_XPrompt.hs
|
tests/test_XPrompt.hs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user