Skip to content
Advertisement

XFCE – keyboard configuration migration

where are the Xfce store keyboard configurations for a migration? I want to prepare the “startup” script to prepare newly installed Linux to match my preference and persistently set up a Czech keyboard for the user who runs it. I try lots of Google and documentation but sadly I can’t find a solution. Thanks.

Advertisement

Answer

OK. All configurations for xfce4 keyboard are stored in the user home folder so it could be migrated to another machine.

Solution. The xfce store the keyboard configuration for a user at these files:

~/.config/xfce4/xfconf/xfce-perchannel-xml/keyboard-layout.xml

<?xml version="1.0" encoding="UTF-8"?>

<channel name="keyboard-layout" version="1.0">
  <property name="Default" type="empty">
    <property name="XkbDisable" type="bool" value="false"/>
    <property name="XkbLayout" type="string" value="cz"/>   <-- required keyboard layout (cz = Czech)
    <property name="XkbVariant" type="string" value="bksl"/>  <-- required keyboard variant (bksl) name of variant with  <|> key
  </property>
</channel>

~/.config/xfce4/xfconf/xfce-perchannel-xml/keyboards.xml

<?xml version="1.0" encoding="UTF-8"?>
<channel name="keyboards" version="1.0">
  <property name="Default" type="empty">
    <property name="Numlock" type="bool" value="true"/> <-- start with numlock on
  </property>
</channel>
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement