<table><tr><td style="">fvogt added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D20186">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #8C98B8;
          color: #6B748C;
          font-style: italic;
          margin: 4px 0 12px 0;
          padding: 8px 12px;
          background-color: #F8F9FC;">
<div style="font-style: normal;
          padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D20186#465586" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: line-through;">D20186#465586</a>, <a href="https://phabricator.kde.org/p/ngraham/" style="
              border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;">@ngraham</a> wrote:</div>
<div style="margin: 0;
          padding: 0;
          border: 0;
          color: rgb(107, 116, 140);"><p>Also keep in mind that it's possible to have global config files in <tt style="background: #ebebeb; font-size: 13px;">/etc/X11/xorg.conf.d/</tt> I have one such file there myself that I made to work around the lack of this feature being implemented yet:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="console" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);"><span style="color: #000080">$  cat /etc/X11/xorg.conf.d/99-libinput.conf</span>
<span style="color: #808080">Section "InputClass"</span>
<span style="color: #808080">        Identifier "libinput touchpad catchall"</span>
<span style="color: #808080">        MatchIsTouchpad "on"</span>
<span style="color: #808080">        MatchDevicePath "/dev/input/event*"</span>
<span style="color: #808080">        Driver "libinput"</span>
<span style="color: #808080">        Option "ClickMethod" "clickfinger" # other option is "buttonareas"</span>
<span style="color: #808080">        Option "DisableWhileTyping" "false"</span>
<span style="color: #808080">        Option "AccelSpeed" "0.2"</span>
<span style="color: #808080">        #Option "MiddleEmulation" "true" # Only use this with the "buttonareas" clickmethod</span>
<span style="color: #808080">EndSection</span>
<span style="color: #808080"></span></pre></div>

<p>Others may have similar settings. If possible, it might be nice to read these config files to determine the default option state in the KCM. Then once the user modifies anything, a new user-specific config file gets written that takes priority.</p></div>
</blockquote>

<p>AFAIK those options are what</p>

<blockquote style="border-left: 3px solid #8C98B8;
          color: #6B748C;
          font-style: italic;
          margin: 4px 0 12px 0;
          padding: 8px 12px;
          background-color: #F8F9FC;">
<div style="font-style: normal;
          padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D20186#465670" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: line-through;">D20186#465670</a>, <a href="https://phabricator.kde.org/p/atulbi/" style="
              border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;">@atulbi</a> wrote:</div>
<div style="margin: 0;
          padding: 0;
          border: 0;
          color: rgb(107, 116, 140);"><blockquote style="border-left: 3px solid #8C98B8;
          color: #6B748C;
          font-style: italic;
          margin: 4px 0 12px 0;
          padding: 8px 12px;
          background-color: #F8F9FC;">
<div style="font-style: normal;
          padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D20186#465586" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: line-through;">D20186#465586</a>, <a href="https://phabricator.kde.org/p/ngraham/" style="
              border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;">@ngraham</a> wrote:</div>
<div style="margin: 0;
          padding: 0;
          border: 0;
          color: rgb(107, 116, 140);"><p>Also keep in mind that it's possible to have global config files in <tt style="background: #ebebeb; font-size: 13px;">/etc/X11/xorg.conf.d/</tt> I have one such file there myself that I made to work around the lack of this feature being implemented yet:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="console" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);"><span style="color: #000080">$  cat /etc/X11/xorg.conf.d/99-libinput.conf</span>
<span style="color: #808080">Section "InputClass"</span>
<span style="color: #808080">        Identifier "libinput touchpad catchall"</span>
<span style="color: #808080">        MatchIsTouchpad "on"</span>
<span style="color: #808080">        MatchDevicePath "/dev/input/event*"</span>
<span style="color: #808080">        Driver "libinput"</span>
<span style="color: #808080">        Option "ClickMethod" "clickfinger" # other option is "buttonareas"</span>
<span style="color: #808080">        Option "DisableWhileTyping" "false"</span>
<span style="color: #808080">        Option "AccelSpeed" "0.2"</span>
<span style="color: #808080">        #Option "MiddleEmulation" "true" # Only use this with the "buttonareas" clickmethod</span>
<span style="color: #808080">EndSection</span>
<span style="color: #808080"></span></pre></div>

<p>Others may have similar settings. If possible, it might be nice to read these config files to determine the default option state in the KCM. Then once the user modifies anything, a new user-specific config file gets written that takes priority.</p></div>
</blockquote>

<p>Is there any specific library which could read these files ??</p></div>
</blockquote>

<p>AFAIK this is not necessary. The configuration here simply specifies the default values for the properties used until overwritten during runtime.<br />
So storing it in whatever format and applying them on device discovery is fine.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D20186">https://phabricator.kde.org/D20186</a></div></div><br /><div><strong>To: </strong>atulbi, ngraham, romangg, davidedmundson, Plasma<br /><strong>Cc: </strong>fvogt, GB_2, jriddell, knambiar, plasma-devel, jraleigh, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>