Add per-tool settings and gesture customization
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Name: touchpad-hold-tap
|
||||
Version: 0.1.0
|
||||
Release: 6%{?dist}
|
||||
Release: 9%{?dist}
|
||||
Summary: Hold-tap middle-click gesture for touchpads
|
||||
|
||||
License: MIT
|
||||
@@ -9,6 +9,8 @@ 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
|
||||
@@ -25,10 +27,15 @@ gestures. Other touchpad input continues through libinput normally.
|
||||
|
||||
%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} \
|
||||
@@ -37,9 +44,29 @@ install -Dpm 0644 %{SOURCE3} \
|
||||
%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-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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user