1
0
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
Go to file
2026-04-06 04:30:51 -07:00
.gitignore Initial commit 2014-11-16 17:32:47 +01:00
LICENSE Initial commit 2014-11-16 17:32:47 +01:00
README.md Fix typo. 2026-04-06 04:01:41 -07:00
xproperty.py Fix setting ATOM arrays. 2026-04-06 04:30:51 -07:00

xproperty

Xproperties on Wikipedia

xprop cant 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"