Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a requirement to change the keyboard shortcut in Xfce that runs the command xflock4. I understand how Xfce controls the keyboard shortcut on a per-user basis, but can not find any mechanism for doing this on a global basis for all existing and new users.

How do you change an Xfce command's keyboard shortcut for all users on a system?

share|improve this question
Interesting precision (I think): all users on a system, you mean "all existing", or "all existing and coming"? Because this can influence answers (and eventually rule out the script ones, doing the same change for all user accounts) – Gnoupi Nov 18 '09 at 17:42
I need this setting to be for all existing and future users. – Randall Nov 18 '09 at 18:43

1 Answer 1

up vote 0 down vote accepted

In XFCE, the default theme is in $(datadir)/themes/Default/xfwm4/keythemerc. $datadir is often defined to be /usr/share/. If it is for you, you should be able to edit the default configuration file manually, which everyone would then inherit.

share|improve this answer
keythemerc seems to have the keyboard shortcuts for all the commands that are built into the window manager, but none of the keyboard shortcuts used to launch other applications like xflock4 or xfquit4 are defined there. I'm looking to change those shortcuts. – Randall Nov 19 '09 at 14:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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