2014年12月28日 星期日

[Ubuntu] Asus Fn+F3 touchpad toggle doesn't work

mkdir ~/bin
gedit ~/bin/toggletouchpad.sh


#!/bin/bash
if [ $(synclient -l | grep TouchpadOff | awk '{print $3}') == 1 ] ; then
  synclient touchpadoff=0;
else
 synclient touchpadoff=1;
fi 

chmod +x ~/bin/toggletouchpad.sh
~/bin/toggletouchpad.sh 
------------------------------------------------------------------------------------------------- 
Go to Settings Manager -> Keyboard -> Application shortcuts and 
create an Fn+F3 shortcut to point to /home/USER/bin/toggletouchpad.sh 
(replace USER with your actual username) and test the Fn+F3 combination.
     

沒有留言:

張貼留言

Ubuntu Libreoffice add Chinese language

  sudo apt-get install libreoffice sudo apt-get install libreoffice-l10n-zh-tw libreoffice-help-zh-tw   如要新增簡體中文則輸入下方指令: sudo apt-get instal...