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?

  • 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, 2009 at 17:42
  • 1
    I need this setting to be for all existing and future users.
    – Randall
    Nov 18, 2009 at 18:43

1 Answer 1


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.

  • 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, 2009 at 14:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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