Disabling Your Touchpad In Slackware (KDE)

Ever 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


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

  1. comhack says:

    Nice tip!

    • I’ve always hated that damned 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. šŸ™‚

  3. kmn phoenix says:

    First time user on slackware and it was like love at first sight….did my installation and for now booted to the Xfce GUI…slowly got to tear that relationship apart…

    Credit where credit is due – well said mate!

    • Things have been relatively dead here for a while. I’m glad someone out there still finds some of my ramblings useful. Thanks for stopping by and commenting.

      Regards,

      ~Eric

  4. Redguns says:

    you did it like a BOSS.

  5. Newbie says:

    This article was written by Google Translator.

    Thank you very much.

    I finally killed the TouchPad.

    Touch pad buttons are alive but also thanks to the finger easy thing.

    Hurray V. T. Eric Layton!!, Hurray Slacker!

  6. Newbie says:

    This article was created by Google translation.

    Thank you very much.

    Finally I killed my touch pad.

    Button of the touch pad is alive, but using the keyboard is easy.


Leave a reply to V. T. Eric Layton Cancel reply