Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smallcms/kde_pinch_to_zoom_on_wayland
KDE pinch to zoom on Wayland
https://github.com/smallcms/kde_pinch_to_zoom_on_wayland
kde kde-plasma-5 pinch-to-zoom pinch-zoom wayland
Last synced: 10 days ago
JSON representation
KDE pinch to zoom on Wayland
- Host: GitHub
- URL: https://github.com/smallcms/kde_pinch_to_zoom_on_wayland
- Owner: smallcms
- License: gpl-3.0
- Created: 2024-05-01T18:17:29.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-04T23:03:51.000Z (8 months ago)
- Last Synced: 2024-11-06T20:30:36.869Z (about 2 months ago)
- Topics: kde, kde-plasma-5, pinch-to-zoom, pinch-zoom, wayland
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KDE pinch to zoom on Wayland
### Working example, how to enable pinch-to-zoom in popular Linux distro.# Information
This example based on two packages: well known in Xorg [touchegg](https://github.com/JoseExposito/touchegg) and started in 2022 [dotool](https://git.sr.ht/~geb/dotool). The **dotool** help us with pinch move on Wayland.# Installation
### Add current user to input group
```
sudo usermod -a -G input $USER
```
and then it's foolproof to reboot to make the group and rule effective
### Install touchegg
Fedora:
```
dnf install touchegg
```
OpenSUSE:
```
zypper install touchegg
```
Mageia
```
urpmi touchegg
```
### Install dotool
See instructions here: [dotool from Open Build Service](https://software.opensuse.org//download.html?project=home%3Asmallcms&package=dotool) or install from [Fedora copr](https://copr.fedorainfracloud.org/coprs/smallcms/dotool/).### Post install (run as user)
Enable and start touchegg service
```
sudo systemctl --now enable touchegg.service
```
On Fedora, Mageia post install command udevadm run automatically
```
sudo udevadm control --reload && sudo udevadm trigger
```
Enable and start dotoold service for your current user
```
systemctl --user --now enable dotoold.service
```
# Configuration
### Configure touchegg
Copy touchegg.conf to current user's config directory
```
cp /usr/share/touchegg/touchegg.conf ~/.config/touchegg/touchegg.conf
```Open local ~/.config/touchegg/touchegg.conf. Find xml section `````` and add:
```
true
echo key super+minus | dotoolc
echo key super+equal | dotoolc
begin
true
echo key super+equal | dotoolc
echo key super+minus | dotoolc
begin
```
Note: if your hot keys not Meta+=/Meta+-, use your own from result of ```dotool --list-keys```
### Configure dotool
No configuration needed (John Gebbie, you rocks!).
# F.A.Q.
**Q: Why use dotoold/dotoolc combination? Command ```echo key super+minus | dotool``` works same...****A:** No, not same. dotoold with dotoolc calls works better and faster.