Files
fedora-tools/touchpad-hold-tap/touchpad-hold-tap.spec
T

90 lines
2.8 KiB
RPMSpec

Name: touchpad-hold-tap
Version: 0.1.0
Release: 10%{?dist}
Summary: Hold-tap middle-click gesture for touchpads
License: MIT
URL: https://git.ajpanton.se/ajp_anton/fedora-tools
Source0: 90-touchpad-hold-tap.lua
Source1: LICENSE
Source2: test-touchpad-hold-tap.lua
Source3: README.md
Source4: touchpad-hold-tap-config
Source5: test-touchpad-hold-tap-config
BuildRequires: lua
Requires: libinput >= 1.30
Provides: fedora-tools-tool
%description
A libinput Lua plugin that recognizes a one-finger hold followed by a quick tap
from a second finger and emits a middle click. The held finger may move between
gestures. Other touchpad input continues through libinput normally.
%prep
%build
%check
lua %{SOURCE2} %{SOURCE0}
lua %{SOURCE2} %{SOURCE0} KEY_F13
lua %{SOURCE2} %{SOURCE0} BTN_MIDDLE allow-moving-anchor
bash %{SOURCE5} %{SOURCE0} %{SOURCE4}
%install
install -Dpm 0644 %{SOURCE0} \
%{buildroot}%{_libdir}/libinput/plugins/90-touchpad-hold-tap.lua
install -Dpm 0755 %{SOURCE4} \
%{buildroot}%{_bindir}/touchpad-hold-tap-config
install -Dpm 0644 %{SOURCE1} \
%{buildroot}%{_licensedir}/%{name}/LICENSE
install -Dpm 0644 %{SOURCE3} \
%{buildroot}%{_docdir}/%{name}/README.md
%files
%license %{_licensedir}/%{name}/LICENSE
%doc %{_docdir}/%{name}/README.md
%{_bindir}/touchpad-hold-tap-config
%{_libdir}/libinput/plugins/90-touchpad-hold-tap.lua
%posttrans
%{_bindir}/touchpad-hold-tap-config refresh || :
%postun
if [ "$1" -eq 0 ]; then
rm -f %{_sysconfdir}/touchpad-hold-tap.conf \
%{_sysconfdir}/libinput/plugins/90-touchpad-hold-tap.lua
fi
%changelog
* Sat Sep 05 2026 fedora-tools contributors - 0.1.0-10
- Reset stale touch contacts after an interrupted input stream
* Sat Sep 05 2026 fedora-tools contributors - 0.1.0-9
- Separate minimum anchor age from the optional stationary period
- Allow a held anchor to recover after rejected taps
* Sat Sep 05 2026 fedora-tools contributors - 0.1.0-8
- Add a configurable minimum tap duration
* Sat Sep 05 2026 fedora-tools contributors - 0.1.0-7
- Add persistent timing and output-event configuration
* Sat Sep 05 2026 fedora-tools contributors - 0.1.0-6
- Advertise the tool to Fedora Tools settings
* Sun Aug 30 2026 fedora-tools contributors - 0.1.0-5
- Run state-machine tests during RPM builds and package the README
* Sun Aug 30 2026 fedora-tools contributors - 0.1.0-4
- Allow the anchor finger to move and become stationary again
* Sun Aug 30 2026 fedora-tools contributors - 0.1.0-3
- Route synthesized clicks through an existing pointer device
* Sun Aug 30 2026 fedora-tools contributors - 0.1.0-2
- Route synthesized clicks through a non-clickpad input device
* Sat Aug 29 2026 fedora-tools contributors - 0.1.0-1
- Initial package