Just a short script I wrote to disable my mouse to get me into better workflow habits - Programming On Unix
Users browsing this thread: 7 Guest(s)
|
|||
Got mad at myself for constantly using the mouse for certain tasks when I can just use the keyboard for it. Wrote this little script to find my mouse and disable me completely from using it. Touched it up a little after to make it auto detect the mouse device and the screen resolution:
Code: #!/bin/bash |
|||
|
|||
Quite useful. Thanks for the script.
|
|||
|
|||
Why didn't you just unplug it?! ;)
|
|||
|
|||
|
|||
|
|||
Well it means I have to get off my chair so most certainly yes. :p
|
|||
|
|||
|
|||
Agree, but he did say mouse. ;)
|
|||
|
|||
here's my toggle touch pad script:
Code: #!/bin/sh |
|||
|
|||
Now that could be handy when you don't want an accidental brushing of the touchpad to interupt your keyboarding on a laptop. (Thanks for posting.)
|
|||
|
|||
(07-05-2015, 05:51 AM)bsdkeith Wrote: Now that could be handy when you don't want an accidental brushing of the touchpad to interupt your keyboarding on a laptop. (Thanks for posting.) that's it exactly for me. my touchpad is positioned in a way that this was very frequent. so i made the above script and bound it to MOD+M. so i just toggle it on when i need it, then toggle it back off again when i'm done. |
|||
|
|||
Made the script use wmp (from wmutils) and it performs much better than using xdotool:
Code: while :; do |
|||
|
|||
Minor upgrade to make it not use xrandr and instead use the base 'root' window. Yay for wmutils!
Code: #!/bin/sh |
|||
|
|||
Interesting, will have to try it later. I am guilty of sometimes using the arrows keys in vim.
|
|||
|
|||
|
|||
Been thinking over mouse control recently more and used the remains of this script to help power my mouse control in fyre. Here's an example.
|
|||