Re: toggle mouse buttons by script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

toggle-hand.sh could look like this:

-----
#!/bin/bash

grep -q "MouseButtonMapping=RightHanded" .kde/share/config/kcminputrc && 
RIGHT=1

if (( $RIGHT )); then {
        sed -i .kde/share/config/kcminputrc \
            -e 's/MouseButtonMapping=RightHanded/MouseButtonMapping=LeftHanded/'
}
else {
        sed -i .kde/share/config/kcminputrc \
            -e 's/MouseButtonMapping=LeftHanded/MouseButtonMapping=RightHanded/'
}
fi
-----

Cheers, Patrick.


Am Freitag, 14. Juli 2006 08:41 schrieb Stephan Kahnt:
> Hi list,
>
> I have to change the mouse buttons from left hand to right hand rather
> often. Isn't there a way to do this by a little script? I figured out that
> I have to change .kde/share/config/kcminputrc. But how to apply the
> changes?
>
> Thanks.

-- 
Key ID: 0x86E346D4
Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4

Attachment: pgpPBOz81Ke6u.pgp
Description: PGP signature

___________________________________________________
.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux