Re: toggle mouse buttons by script

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

 



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.

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