Announcement

Collapse
No announcement yet.

Run some commands at startup

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Run some commands at startup

    Hi all,

    I'm new to Linux and am running Kubuntu Edgy Eft on a Toshiba M400 tablet pc. I'm trying to get the right click button working on my stylus (the digitizer itself is working great). If I run these two commands from Konsole:

    xsetwacom set stylus button2 3

    xsetwacom set stylus TPCButton 0

    ...the right click button works.

    What I'd like to do now is run these commands every time at startup. I've tried various methods based on stuff I've found on Google / in forums etc but have had no success. Can anyone let me know what I should be doing?

    Any help would be greatly appreciated.

    #2
    Re: Run some commands at startup

    OK I have sussed it.

    Put your commands in a shell script like:

    #!/bin/bash
    #enable stylus right click
    xsetwacom set stylus button2 3
    xsetwacom set stylus TPCButton 0

    Save is something like tablet.sh

    make it executable (right click in konqueror) and place it in /home/username/.kde/Autostart/

    It will now execute when KDE starts!

    Comment

    Working...
    X