Oops... of course you should specify the path of that file in an absolute way (~/.kde/share/config/kcminputrc). Am Samstag, 15. Juli 2006 15:04 schrieb Patrick Nagel: > 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:
pgpcc4qF1G5jd.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.