mirror of
https://github.com/dperelman/xproperty.git
synced 2026-04-06 07:31:21 -04:00
Get and set X11 properties that are arrays of [utf-8] strings or atoms
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| xproperty.py | ||
xproperty
xprop can’t set STRING/UTF8_STRING/ATOM array properties.
xproperty.py handles just those, not trying to replicate the other
functionality of xprop.
USAGE: xproperty.py WINDOW PROPERTY [TYPE] [VALUES...]
WINDOW is "-root" or a window id ("0x" prefixed for hex)
PROPERTY is the name of the property to get/set
The following arguments are for setting the property value:
TYPE is one of STRING, UTF8_STRING, ATOM, or AUTO. If AUTO,
the existing property type will be used.
VALUES are the new values to set the property to.
Examples:
# get property (just give the name)
$ ./xproperty.py -root _XKB_RULES_NAMES
_XKB_RULES_NAMES(STRING) = evdev pc104 us altgr-intl
# set property to STRING array
$ ./xproperty.py -root _XKB_RULES_NAMES STRING evdev pc104 us altgr-intl
# set property to array of existing type (UTF8_STRING in this case)
$ ./xproperty.py -root _NET_DESKTOP_NAMES AUTO "First Workspace" "Another"