<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=845811&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / [Résolu] Touchpad on/off Lubuntu]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=845811</link>
		<description><![CDATA[Les sujets les plus récents dans [Résolu] Touchpad on/off Lubuntu.]]></description>
		<lastBuildDate>Fri, 11 Jan 2013 12:14:19 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] Touchpad on/off Lubuntu]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12168491#p12168491</link>
			<description><![CDATA[<p>Merci d&#039;avoir partagé. Le script n&#039;est pas spécifique LXDE, il devrait fonctionner quasiment sur tous les bureaux, pourvu qu&#039;on a le pilote et synclient. Pour s&#039;en assurer :</p><p>sudo apt-get install xserver-xorg-input-synaptics</p><p>En revanche, le script semble n&#039;affecter que la fonctionnalité &quot;clic en touchant&quot;, pas les mouvements du pointeur en effleurant (et c&#039;est ça qui me gêne).</p><p>Voici une version ajustée :</p><p>-sed au lieu de grep+tr+cut (plus robuste par rapport à la présence ou non d&#039;espaces)<br />-envoie une notification à l&#039;écran si possible pour confirmer l&#039;opération</p><div class="codebox"><pre><code>#!/bin/bash
# Adjusted from http://forum.ubuntu-fr.org/viewtopic.php?id=845811
FEATURE=TouchpadOff

OLDSTATE=$( synclient -l | sed -n &quot;s/^ *$FEATURE *= *\(.*\)/\1/p&quot; )

if [ $OLDSTATE == 0 ]
then
        NEWSTATE=1
        STATEMSG=&quot;disabled&quot; # setting &quot;TouchpadOff&quot; to 1 disables Touchpad.
else
        NEWSTATE=0
        STATEMSG=&quot;enabled&quot;
fi

synclient $FEATURE=$NEWSTATE

if type -f notify-send &gt;/dev/null
then
        notify-send Touchpad &quot;Touchpad $STATEMSG&quot; &amp;
fi</code></pre></div><p>En bonus ligne de commande pour XFCE équivalente à la configuration XML d&#039;une réponse précédente.</p><div class="codebox"><pre><code>xfconf-query -c xfce4-keyboard-shortcuts -n -p &quot;/commands/custom/XF86TouchpadToggle&quot; -s &quot;touchpad_toggle.sh&quot; -t string</code></pre></div><p>Teste sur Ubuntu 12.10.</p>]]></description>
			<author><![CDATA[dummy@example.com (sgourichon)]]></author>
			<pubDate>Fri, 11 Jan 2013 12:14:19 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12168491#p12168491</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] Touchpad on/off Lubuntu]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11387911#p11387911</link>
			<description><![CDATA[<p>Je me réponds histoire de clore le sujet. <br />J&#039;ai trouvé :<br />1/ faire un script, par exemple :</p><div class="codebox"><pre><code>#!/bin/bash

#récupération des infos synclient:
PADSTATE=`synclient -l | grep TapButton1 | tr -s &quot; &quot; | cut -d &quot; &quot; -f4`

# toggle on/off tapbutton
if [ $PADSTATE == 0 ]; then
    synclient tapButton1=1
else
    synclient tapButton1=0
fi</code></pre></div><p>2/ Assigner un raccourcis clavier à ce script dans le .rc :</p><div class="codebox"><pre><code>&lt;keybind key=&quot;XF86TouchpadToggle&quot;&gt;
      &lt;action name=&quot;Execute&quot;&gt;
           &lt;command&gt;~/.bin/toggletouchpad.sh&lt;/command&gt;
      &lt;/action&gt;
    &lt;/keybind&gt;</code></pre></div><p>Et voila ! <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (mouton2002)]]></author>
			<pubDate>Sun, 04 Nov 2012 15:03:08 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11387911#p11387911</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] Touchpad on/off Lubuntu]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=8506141#p8506141</link>
			<description><![CDATA[<p>Youhou !!!</p>]]></description>
			<author><![CDATA[dummy@example.com (mouton2002)]]></author>
			<pubDate>Fri, 16 Mar 2012 16:29:38 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=8506141#p8506141</guid>
		</item>
		<item>
			<title><![CDATA[[Résolu] Touchpad on/off Lubuntu]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=8423421#p8423421</link>
			<description><![CDATA[<p>Bien le bonsoir,<br />n&#039;ayant pas de raccourcis multimédia pour désactiver le touchpad, je voulais faire un raccourcis clavier. Par exemple dans mon rc : </p><div class="codebox"><pre><code>&lt;keybind key=&quot;Super-x&quot;&gt;
      &lt;action name=&quot;Execute&quot;&gt;
          &lt;command&gt;synclient tapButton1=0&lt;/command&gt;
      &lt;/action&gt;
    &lt;/keybind&gt; </code></pre></div><p>pour désactiver et</p><div class="codebox"><pre><code>&lt;keybind key=&quot;Super-y&quot;&gt;
      &lt;action name=&quot;Execute&quot;&gt;
          &lt;command&gt;synclient tapButton1=1&lt;/command&gt;
      &lt;/action&gt;
    &lt;/keybind&gt; </code></pre></div><p>Pour réactiver.</p><p>Serait-il possible d&#039;assigner une seule touche pour que lorsque j&#039;appuie une fois la valeur est 0 est lorsque je re-appuie la valeur est 1 ??</p><p>Merci !!</p>]]></description>
			<author><![CDATA[dummy@example.com (mouton2002)]]></author>
			<pubDate>Thu, 08 Mar 2012 22:58:21 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=8423421#p8423421</guid>
		</item>
	</channel>
</rss>
