Disabling Your Touchpad In Slackware (KDE)

Every been typing along somewhere and have your cursor jump across the page because your thumb hit the touchpad on your laptop accidentally?

Well, on some of those high priced commercial operating systems like Windows or MacOS there might actually be a setting or a keyboard shortcut that disables your touchpad. Us Slackware users are made of stronger stuff than most. We don’t want no silly buttons and keyboard shortcuts. We want scripts and command line stuff, right? We like to do things down at the nitty-gritty level of computing.

So, with that in mind, if you’re running Slackware/KDE, you can make yourself a nice little script that will disable your laptop’s touchpad and you’ll never have to cuss again when that cursor goes zooming across the screen while you’re typing that flaming post on USENET to that know-it-all Ubuntu dev.

Here’s what you do…

First check to see if you have a /home/<username>/.kde/env directory. If you don’t, create it:

you@your_system ~:$ cd .kde

you@your_system ~:$ mkdir env

You can also do this graphically, if you prefer, but we know you hardcore Slackers don’t do things graphically now, do you? ;)

Anyway, once you’ve determined that you have the directory or have created one, you can now create the simple little script to place in there that will KILL that annoying touchpad.

Using vi, vim, or whatever editor you like, create this small file:

#!/bin/bash

synclient TouchpadOff=1

Save the file as “myenv.sh” in your /home/username/.kde/env directory. Make sure it is executable:

you@your_system ~:$ chmod 755 myenv.sh

Log out of your current KDE session and log back in. The touchpad from HELL is now as dead as weird uncle Bob’s hairpiece. WOO-HOO!

For those of you who occasionally use your laptop sans an external mouse, you can always revive the touchpad by changing the permissions on the myenv.sh file or just renaming it to myenv.inop. Since “inop” is an extension that the operating system does not recognize, it just ignores it. I’ve used “inop” to kill executables since way back in my Windoze daze. It works fine.

Anywho, I hope this little trick will make your Slackware/KDE computering that much more enjoyable. Oh, and I cannot take credit for this at all. A member of the kde.org forums called google01103 posted this tip in a thread over there about disabling that pesky touchpad. Credit where credit is due. That’s my motto.

Have fun…

~Eric

Image credits: toilet laptop user – source/ownership unknown = If you own this image, please contact me regarding permissions/copyrights. ~Eric

About these ads

4 Comments on “Disabling Your Touchpad In Slackware (KDE)”

  1. comhack says:

    Nice tip!

    • I’ve always hated that damed touchpad on this lappy. It’s right there near my thumb all the time. Now that I’m using the laptop as my main system for a while, I figured I’d disable that bugger. :)

  2. Barnabyh says:

    Nice one. Although I do not use KDE, of course. Way too easy:-)

    • Well, as you may remember, I was very anti-KDE4 at one time. However, once they worked the bugs out of it, I decided to give it another go. And once again, I’m hooked. ;)

      I still run Xfce on one of my laptops and my shop system. :)


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 43 other followers