$ xprop -root _XKB_RULES_NAMES
_XKB_RULES_NAMES(STRING) = "evdev", "pc104", "us", "altgr-intl", ""

I can see that this property on the root window contains five strings. But I found no way with xprop to set it! The tricky part is to set a string array so that it looks like shown above.

If xprop can’t do it another tool is fine, too.

  • I don't think you can do that with xprop (due to null chars)... unless you patch it (so that 8s would accept a comma delimited string as an array, similar to what this guy did here for 32a). Nov 14 '14 at 18:30
  • @don_crissti any other program can? Or up to 50 python lines, maybe? Nov 14 '14 at 19:00
  • None that I'm aware of, alas. The few py bindings that I have occasionally played with, could only get the values, not set them. Nov 14 '14 at 20:59

I found no way with xprop. So I wrote xproperty, which can do that. It’s a little Python program on github.

  • @don_crissti It had 54 lines the last time I checked... Dec 13 '14 at 22:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.