<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: 2 mice are not better than 1</title>
	<atom:link href="http://blog.nixternal.com/2007.01.19/2-mice-are-not-better-than-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nixternal.com/2007.01.19/2-mice-are-not-better-than-1/</link>
	<description>Free Software Chicago Style: letting proprietary solutions sleep with the fishes</description>
	<pubDate>Fri, 21 Nov 2008 19:46:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Esekla</title>
		<link>http://blog.nixternal.com/2007.01.19/2-mice-are-not-better-than-1/#comment-3705</link>
		<dc:creator>Esekla</dc:creator>
		<pubDate>Sun, 27 Jan 2008 09:43:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nixternal.com/2007.01.19/2-mice-are-not-better-than-1/#comment-3705</guid>
		<description>Also, this website has a bug where it ends code blocks prematurely.</description>
		<content:encoded><![CDATA[<p>Also, this website has a bug where it ends code blocks prematurely.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Esekla</title>
		<link>http://blog.nixternal.com/2007.01.19/2-mice-are-not-better-than-1/#comment-3704</link>
		<dc:creator>Esekla</dc:creator>
		<pubDate>Sun, 27 Jan 2008 09:42:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nixternal.com/2007.01.19/2-mice-are-not-better-than-1/#comment-3704</guid>
		<description>Here is my version of udevmice.sh, combining the two comments above so that it both honors (un)plug events and handles the case when the mouse is already plugged in when the x-session starts up:
&lt;code&gt;
#!/bin/bash
#DATE=`date`
#FLOG="/tmp/udevmice.log"
#echo "$DATE - [$*] - [$ACTION]" &#62;&#62; "$FLOG"
#env &#62;&#62; "$FLOG"

if ps -C x-session-manager&#62;/dev/null ; then
 case $ACTION in
  add)
   synclient TouchpadOff=1
  ;;
  remove)
   synclient TouchpadOff=0
  ;;
  *)  # assume X startup
   /usr/bin/syndaemon -d -i 1.0 -t
   if lsusb&#124;grep -q Mouse ; then
    synclient TouchpadOff=1
   else
    synclient TouchpadOff=0
   fi
  ;;   
 esac
fi
&lt;/code&gt;
I put it in my session startup, and also use the udev rule mentioned above to call it for plug events.  Note that my mouse is usb (and my touchpad is not) so I detect the presence of a plugged in mouse with lsusb.  I'm a lousy scripter, so refinements are welcome.</description>
		<content:encoded><![CDATA[<p>Here is my version of udevmice.sh, combining the two comments above so that it both honors (un)plug events and handles the case when the mouse is already plugged in when the x-session starts up:<br />
<code><br />
#!/bin/bash<br />
#DATE=`date`<br />
#FLOG="/tmp/udevmice.log"<br />
#echo "$DATE - [$*] - [$ACTION]&#8221; &gt;&gt; &#8220;$FLOG&#8221;<br />
#env &gt;&gt; &#8220;$FLOG&#8221;</p>
<p>if ps -C x-session-manager&gt;/dev/null ; then<br />
 case $ACTION in<br />
  add)<br />
   synclient TouchpadOff=1<br />
  ;;<br />
  remove)<br />
   synclient TouchpadOff=0<br />
  ;;<br />
  *)  # assume X startup<br />
   /usr/bin/syndaemon -d -i 1.0 -t<br />
   if lsusb|grep -q Mouse ; then<br />
    synclient TouchpadOff=1<br />
   else<br />
    synclient TouchpadOff=0<br />
   fi<br />
  ;;<br />
 esac<br />
fi<br />
</code><br />
I put it in my session startup, and also use the udev rule mentioned above to call it for plug events.  Note that my mouse is usb (and my touchpad is not) so I detect the presence of a plugged in mouse with lsusb.  I&#8217;m a lousy scripter, so refinements are welcome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Desactivar el touchpad al conectar un ratón en Linux</title>
		<link>http://blog.nixternal.com/2007.01.19/2-mice-are-not-better-than-1/#comment-701</link>
		<dc:creator>Desactivar el touchpad al conectar un ratón en Linux</dc:creator>
		<pubDate>Wed, 16 May 2007 08:02:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nixternal.com/2007.01.19/2-mice-are-not-better-than-1/#comment-701</guid>
		<description>[...] nixternal publicaron hace tiempo un pequeño script para correr al inicio que comprueba si hay conectado un [...]</description>
		<content:encoded><![CDATA[<p>[...] nixternal publicaron hace tiempo un pequeño script para correr al inicio que comprueba si hay conectado un [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mez</title>
		<link>http://blog.nixternal.com/2007.01.19/2-mice-are-not-better-than-1/#comment-239</link>
		<dc:creator>Mez</dc:creator>
		<pubDate>Sat, 20 Jan 2007 07:54:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nixternal.com/2007.01.19/2-mice-are-not-better-than-1/#comment-239</guid>
		<description>Darn you muzzol!

I was waiting for nixternal to be active online before proposing a similar thing ;)

I didn't know this was here until now!

:(</description>
		<content:encoded><![CDATA[<p>Darn you muzzol!</p>
<p>I was waiting for nixternal to be active online before proposing a similar thing <img src='http://blog.nixternal.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I didn&#8217;t know this was here until now!</p>
<p> <img src='http://blog.nixternal.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nixternal</title>
		<link>http://blog.nixternal.com/2007.01.19/2-mice-are-not-better-than-1/#comment-238</link>
		<dc:creator>nixternal</dc:creator>
		<pubDate>Fri, 19 Jan 2007 21:59:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nixternal.com/2007.01.19/2-mice-are-not-better-than-1/#comment-238</guid>
		<description>ROCK ON WITH YOUR BAD SELF!

Dude you are the champ! Thanks a lot for this one :)

I have been studying udev and was getting close but this totally helped, worked, and rocks! Thanks again.</description>
		<content:encoded><![CDATA[<p>ROCK ON WITH YOUR BAD SELF!</p>
<p>Dude you are the champ! Thanks a lot for this one <img src='http://blog.nixternal.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I have been studying udev and was getting close but this totally helped, worked, and rocks! Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: muzzol</title>
		<link>http://blog.nixternal.com/2007.01.19/2-mice-are-not-better-than-1/#comment-237</link>
		<dc:creator>muzzol</dc:creator>
		<pubDate>Fri, 19 Jan 2007 21:15:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nixternal.com/2007.01.19/2-mice-are-not-better-than-1/#comment-237</guid>
		<description>sorry, i closed code tag to early :(

admin, feel free to edit it</description>
		<content:encoded><![CDATA[<p>sorry, i closed code tag to early <img src='http://blog.nixternal.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>admin, feel free to edit it</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.006 seconds -->
