Reply
Thread Tools
Posts: 91 | Thanked: 10 times | Joined on May 2007
#31
i cant seem to get a button to assign either, it does work if i run it from a shell
 
PinCushionQueen's Avatar
Posts: 538 | Thanked: 168 times | Joined on Dec 2007 @ Seattle
#32
If the script works when you run it from the shell the just assign an Input Action (hotkey). I've posted detailed instructions on how to do the assignment before just search...

If you're having a different issue then please provide more details.
 
Posts: 91 | Thanked: 10 times | Joined on May 2007
#33
yes i got it, the problem was i didnt name it .sh at the end (even though i set it to 755).
 
Posts: 7 | Thanked: 0 times | Joined on Mar 2008
#34
i can get the script working but i dont know how to assign an input action to toggle it on and off. ive searched but i cant seem to find the thread.
 
PinCushionQueen's Avatar
Posts: 538 | Thanked: 168 times | Joined on Dec 2007 @ Seattle
#35
See this post earlier in this thread: http://www.internettablettalk.com/fo...4&postcount=14

or here's an alternative: http://www.internettablettalk.com/fo...18&postcount=6
__________________
When you wish upon a star, your dreams really can come true... Unless it's an asteroid hurtling towards earth that will destroy all life.
 

The Following User Says Thank You to PinCushionQueen For This Useful Post:
Posts: 7 | Thanked: 0 times | Joined on Mar 2008
#36
im trying it right now, THANKS! =D
 
Posts: 7 | Thanked: 0 times | Joined on Mar 2008
#37
Originally Posted by PinCushionQueen View Post
See this post earlier in this thread: http://www.internettablettalk.com/fo...4&postcount=14

or here's an alternative: http://www.internettablettalk.com/fo...18&postcount=6
Sorry, PinCushionQueen but it still doesn't seem to work. I've looked and someone else had the same problem but it was solved by installing xmodmap, which i have done. Ive followed the instruction earlier but instead of toggling the right click, it opens Kwrite with the script. Any suggestions?
 
PinCushionQueen's Avatar
Posts: 538 | Thanked: 168 times | Joined on Dec 2007 @ Seattle
#38
so when you run the script from xterm it works to toggle right click? if so what command are you using? Have you made sure the file name ends in .sh ? If you need more help you'll need to give me more details. Exactly which script , how you saved the file, how did you set up the hotkey etc...
 
Posts: 7 | Thanked: 0 times | Joined on Mar 2008
#39
export CHANGE=`/usr/bin/xmodmap -pp | awk '{print $2}' | tail -n 33 | head -n 1`
if test 3 = $CHANGE
then
/usr/bin/xmodmap -e "pointer = 1 2 3"
else
/usr/bin/xmodmap -e "pointer = 3 2 1"
fi

I used the script above, yes the file ends in .sh and I saved the file in Kwrite (>save as> swmb.sh). I have no idea what i did wrong but it always opens up Kwrite instead of toggling. I set up the toggle by following your instructions (Input Actions>Command/URL) and set it to /home/user/swmb.sh where the file is.
 
PinCushionQueen's Avatar
Posts: 538 | Thanked: 168 times | Joined on Dec 2007 @ Seattle
#40
Ok last few things to try did you make your script executable? Do this in xterm as root:

chmod a+x swmb.sh

And/or you might try adding the following line to the very top of your script:

#!/bin/sh

Hope this helps
__________________
When you wish upon a star, your dreams really can come true... Unless it's an asteroid hurtling towards earth that will destroy all life.
 

The Following User Says Thank You to PinCushionQueen For This Useful Post:
Reply

Tags
deprecated, kde, kde35, mouse


 
Forum Jump


All times are GMT. The time now is 07:34.