Thank you for your interest in improving Touchpad Toggle. This document outlines the process for submitting changes.
- GNOME desktop environment with Wayland
- Bash 4.0+
gsettings,realpath- An audio player (
pw-play,paplay, oraplay)
- Clone the repository
- Make the script executable:
chmod +x touchpad-toggle - Run the smoke tests:
./tests/test.sh - All tests must pass before submitting changes
- Use 4-space indentation inside functions
- Comment in English above the code block being described
- Keep functions focused — one responsibility per function
- Use
localvariables inside functions
- English (
.en) is the fallback language and source of truth - All message keys in
.enmust exist in.deand.th - Run
./tests/test.shto verify localization key parity
- Use conventional commit messages:
feat:new featurefix:bug fixdocs:documentation onlyrefactor:code restructuringtest:test additions or changes
- Reference issues where applicable:
fix: toggle race condition (#12)
- Run
./tests/test.shbefore every commit - Manual testing required for GNOME-dependent functions (toggle, shortcut, reset)
- Document any new manual test cases in your PR description
- Fork the repository
- Create a feature branch:
git checkout -b feat/your-feature - Commit your changes
- Ensure smoke tests pass
- Open a pull request with a clear description of changes and test results
- Use GitHub Issues
- Include your distribution, GNOME version, and Bash version
- Attach relevant log entries from
~/.local/state/touchpad-toggle/touchpad-toggle.log