Re: [lubuntu-users] Keyboard shortcuts (for touchpad enable/disable)
Israel, I had the same reaction to Basil's suggestion. But, I overlooked how he said a value of zero means "touchpad off." I think that would satisfy resource sensitive people (the target audience of Lubuntu?). If I'm not using a real mouse (and needed the touchpad), reducing its sensitivity while typing would be a blessing. Maybe it's just me, but my mouse cursor (and focus) are *all over the place* while I type with the touchpad on. I can't get anything done. I prefer an external mouse (and touchpad off). But, sometimes it's handy to use the touchpad than to lug a mouse around with you. My thing is: I wish it could be a UI in the menu->preferences/settings. Then new users would have a reasonable chance of finding it. But, I know that adds to someone's work. There is a touchpad-indicator[1] package (with a UI, sits in the taskbar). [1] sudo add-apt-repository ppa:atareao/atareao sudo apt-get update sudo apt-get install touchpad-indicator On Sat, Sep 10, 2016 at 8:11 AM, Israelwrote: > On 09/07/2016 04:24 PM, Basil Fernie wrote: > >> This is beginning to sound rather easy to implement: have a little >> listener process monitoring keyboard activity.. whenever a key is pressed, >> the touchpad is automatically set "off" for say 500-600ms, after which it >> is set "on" again. No need to fiddle with drivers, key-combos... User must >> be able to set delay, with delay=0 meaning touchpad permanently off. >> >> Any takers? >> >> Basil >> > ... > Hi Basil, > This would be an OK idea, and easy to implement, but the issue you run > into is having a near continual 'sleep' going, which eats memory. > You could write a program to do this but I think a touchpad toggle script > is easier, and makes more sense, as well as saves your resources: > > #!/bin/bash > CURRENT=$(synclient |grep TouchpadOff) > # get the current touchpadoff value... 0 is on 1 is off > if [[ "${CURRENT/0}" != "$CURRENT" ]] > then > # touchpad is on, so turn it off > synclient TouchpadOff=1 > else > # touchpad is off, so turn it on > synclient TouchpadOff=0 > fi > > Just simply make this an executable file and edit your openbox config file > to make a shortcut to run this script > It is simple and easy. It automatically turns it off OR on depending on > the current state. > > -- > Regards > > > -- > Lubuntu-users mailing list > Lubuntu-users@lists.ubuntu.com > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm > an/listinfo/lubuntu-users > -- Lubuntu-users mailing list Lubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/lubuntu-users
Re: [lubuntu-users] Keyboard shortcuts (for touchpad enable/disable)
On 09/07/2016 04:24 PM, Basil Fernie wrote: This is beginning to sound rather easy to implement: have a little listener process monitoring keyboard activity.. whenever a key is pressed, the touchpad is automatically set "off" for say 500-600ms, after which it is set "on" again. No need to fiddle with drivers, key-combos... User must be able to set delay, with delay=0 meaning touchpad permanently off. Any takers? Basil ... Hi Basil, This would be an OK idea, and easy to implement, but the issue you run into is having a near continual 'sleep' going, which eats memory. You could write a program to do this but I think a touchpad toggle script is easier, and makes more sense, as well as saves your resources: #!/bin/bash CURRENT=$(synclient |grep TouchpadOff) # get the current touchpadoff value... 0 is on 1 is off if [[ "${CURRENT/0}" != "$CURRENT" ]] then # touchpad is on, so turn it off synclient TouchpadOff=1 else # touchpad is off, so turn it on synclient TouchpadOff=0 fi Just simply make this an executable file and edit your openbox config file to make a shortcut to run this script It is simple and easy. It automatically turns it off OR on depending on the current state. -- Regards -- Lubuntu-users mailing list Lubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/lubuntu-users
Re: [lubuntu-users] Keyboard shortcuts (for touchpad enable/disable)
On Tue, Sep 6, 2016 at 2:15 PM, Mark Fwrote: > I use Windows-key + Space-key. I don't recall hitting it by accident. Upon further reflection, that could be because I don't make use of any keyboard shortcuts on a regular basis. Maybe if I were in the habit of hitting various key combos I could empathize with Aere's caution. But, it seems like that would happen with any keyboard shortcut. I've been using ctrl+alt+f1 to bring up a console (then ctrl+alt+fn+f7) to go back to the desktop (a workaround for the mouse cursor disappearing after locking/unlocking the screen). If I accidentally hit that, I would know how to undo it. I can see how, if someone didn't know of the shortcut they could cause Aere's situation to arise. But, It's possible I could hit a different key (in the scenario I described above) and get something I wouldn't know how to get out of. It's not like the touchpad scenario doesn't already exist(?) in other ways. A solution would be if the on/off toggle were a GUI under menu-settings, and the shortcut could be enabled/disabled there? Then the user would have a reasonable expectation of knowing about the shortcut if someday they accidentally toggled the touchpad. About the documentation of keyboard shortcuts, I often wish Lubuntu had a "Welcome" screen after installation, like Mint does. Things like keyboard shortcuts could fit there. I'm sure experienced users think that would be lame. But, the way Windows is becoming controversial with its users, it seems to me like it would be good to have the basics presented to new users. It's not that bad to check "Don't show me again." -- Lubuntu-users mailing list Lubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/lubuntu-users