3

I am currently running "Linux Mint 18.3 Sylvia" with the Desktop Environment "xfce4".
Because I have to setup several PCs, I want to write a bash script, that configures the keyboard shortcuts for the system.

I did some research, but none of these articles were what I was searching for. Here for example the author is using Cinnamon as DE, so the given filepath (/org/cinnamon/desktop/keybindings/) does not exist on my system. In this article the author is using the program dconf-cli. But i don't want to use an external application. I really want to know, where on my system, these shortcuts will be saved.

0
2

You're looking for $XDG_CONFIG_HOME/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml

Replace $XDG_CONFIG_HOME with ~/.config if you don't have it as an environment variable.

You'll find the user configuration files for most XFCE4 applications in that $XDG_CONFIG_HOME/xfce4 folder, so you might want to simply copy that over for your DE configuration to be consistent between devices.

As an aside, the mentioned path /org/cinnamon/desktop/keybindings/ isn't meant to be an actual file on your filesystem.
It's a path stored in the dconf database, which you can find at $XDG_CONFIG_HOME/dconf/user It's unfortunately not plaintext, and as such not very easy to manipulate without using the dconf command

1
  • While the environment variable $XDG_CONFIG_HOME does not exist in my case, the file path ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml did contain the keyboard shortcuts I was searching for, thank you for the help! Sep 17 '18 at 16:37

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.