View Single Post
Posts: 145 | Thanked: 32 times | Joined on Dec 2007
#6
about input actions;

first, my script looks like this:

Code:
#!/bin/sh
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 think the first line is important for running outside of
terminal (but I might be wrong).

Then I just went to kcontrol-regional&accessibility-
input actions; went to preset actions and pushed
the "new action" button and selected as "action
type" the "keyboard shortcut -> Command/URL"
option. The entered the script location and selected
the shortcut key at the appropriate places ...