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.