View Single Post
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.