1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #!/usr/bin/env bash
- echo -e "\nThis program uses synclient to enable three-finger tap"
- echo -e "for \`button 2' or \`middle click' in GNOME.\n"
- echo -e "Press \`i' to install or any other key to exit.\c"
- read -n 1 keypress
- if [ "$keypress" = i ]; then
- mkdir -p ~/.config/autostart
- cp three-finger-tap.desktop ~/.config/autostart/three-finger-tap.desktop
- synclient TapButton3=2
- echo -e "\n\nCreated the file"
- echo -e " ~/.config/autostart/three-finger-tap.desktop"
- echo -e "\nInstallation is complete."
- echo -e "To uninstall, simply remove the file shown above."
- exit 0
- else
- echo ""
- exit 0
- fi
|