<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" style="task" id="keyboard-compose-key" xml:lang="fr">

  <info>
    <link type="guide" xref="user-settings"/>
    <revision pkgversion="3.30" date="2019-02-08" status="draft"/>

    <credit type="author copyright">
      <name>Petr Kovar</name>
      <email>pknbe@volny.cz</email>
      <years>2014</years>
    </credit>

    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>

    <desc>Activer par défaut la touche de composition pour tous les utilisateurs.</desc>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Thibault Leclair</mal:name>
      <mal:email>thibaultleclair@yahoo.com</mal:email>
      <mal:years>2021</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Mathieu Bousquet</mal:name>
      <mal:email>mathieu.bousquet2@gmail.com</mal:email>
      <mal:years>2022</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Guillaume Bernard</mal:name>
      <mal:email>associations@guillaume-bernard.fr</mal:email>
      <mal:years>2023</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Irénée Thirion</mal:name>
      <mal:email>irenee.thirion@e.email</mal:email>
      <mal:years>2023-2024</mal:years>
    </mal:credit>
  </info>

  <title>Activer la touche de composition</title>

  <p>Pour activer et configurer la touche de composition de votre clavier, définissez la clé GSettings <sys>org.gnome.desktop.input-sources.xkb-options</sys>. Le paramètre sera ainsi activé par défaut pour tous les utilisateurs du système.</p>

  <steps>
    <title>Définir la touche Alt droit comme touche de composition</title>
    <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-profile-user'])"/>
    <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-profile-user-dir'])"/>
    <item>
      <p>Créez une base de données <sys>local</sys> pour paramétrer à l’échelle du système dans <file>/etc/dconf/db/local.d/00-input-sources</file> :</p>
        <code>[org/gnome/desktop/input-sources]
# Définir et activer la touche Alt droit comme touche de composition
xkb-options=['compose:<var>ralt</var>']</code>
      <p>Si vous souhaitez définir une touche différente de <key>Alt</key> droit, remplacez <var>ralt</var> par le nom de la touche désirée, comme décrit dans la page du manuel <link href="man:xkeyboard-config"><cmd>xkeyboard-config</cmd>(7)</link>, section <em>Position of Compose key</em>.</p>
    </item>
    <item>
      <p>Remplacez le paramètre de l’utilisateur et empêchez sa modification dans <file>/etc/dconf/db/local.d/locks/input-sources</file> :</p>
      <code># Verrouiller la liste des options XKB activées
/org/gnome/desktop/input-sources/xkb-options
</code>
    </item>
    <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-update'])"/>
    <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-logoutin'])"/>
  </steps>

</page>
