Package Details: wayland-push-to-talk-fix-git r18.fecb045-2

Git Clone URL: https://aur.archlinux.org/wayland-push-to-talk-fix-git.git (read-only, click to copy)
Package Base: wayland-push-to-talk-fix-git
Description: This fixes the inability to use push to talk in Discord when running Wayland
Upstream URL: https://github.com/Rush/wayland-push-to-talk-fix.git
Keywords: discord ptt push-to-talk wayland
Licenses: MIT
Submitter: RaidonChrome
Maintainer: RaidonChrome
Last Packager: RaidonChrome
Votes: 2
Popularity: 0.36
First Submitted: 2026-01-31 21:11 (UTC)
Last Updated: 2026-02-01 07:36 (UTC)

Required by (0)

Sources (1)

Latest Comments

RaidonChrome commented on 2026-09-28 06:36 (UTC)

It's going to depend on the user needs, for example, here is mine:

[Unit]
Description=push-to-talk (Discord PTT) via xremap virtual device
Documentation=https://github.com/Rush/wayland-push-to-talk-fix
# Restart with xremap: when xremap restarts, the virtual device disappears
# and push-to-talk loses its read fd, so we want this unit to follow.
PartOf=xremap.service
After=sway-session.target graphical-session.target xremap.service
Requires=xremap.service

[Service]
Type=simple
# Wait up to ~10s for a device named xremap to appear in sysfs.
ExecStartPre=/usr/bin/bash -c 'for i in $(seq 1 50); do grep -ql "^xremap$" /sys/class/input/event*/device/name 2>/dev/null && exit 0; sleep 0.2; done; exit 1'
ExecStart=/usr/bin/ptt
# push-to-talk returns 0 when its read fd goes away (e.g. xremap stopped)
Restart=always
RestartSec=3

[Install]
WantedBy=sway-session.target

As you can see it is entangled with xremap on my machine. I suggest you just use your DE/WM functionality to start it with the user session, or ideally very shortly after.

txtsd commented on 2026-09-27 22:35 (UTC)

Would be nice to have a systemd service file to run this as a user service instead of having to run it manually.