https://github.com/eth-p/discord-plugin-afkland
A BetterDiscord plugin to fix AFK detection on Wayland.
https://github.com/eth-p/discord-plugin-afkland
betterdiscord discord discord-plugin wayland
Last synced: about 1 month ago
JSON representation
A BetterDiscord plugin to fix AFK detection on Wayland.
- Host: GitHub
- URL: https://github.com/eth-p/discord-plugin-afkland
- Owner: eth-p
- License: mit
- Created: 2025-07-25T08:14:21.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-07-26T22:32:45.000Z (11 months ago)
- Last Synced: 2025-09-09T17:08:08.858Z (9 months ago)
- Topics: betterdiscord, discord, discord-plugin, wayland
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BetterDiscord Plugin: AFKland
A BetterDiscord plugin to fix AFK detection on Wayland.
## Why?
When Discord thinks you're using the computer, it won't send notifications
to the Discord mobile app. When running under Wayland, Discord always
thinks you're using the computer.
[This is a known issue.](https://support.discord.com/hc/en-us/community/posts/360052371093-Discord-on-Linux-Wayland-has-no-AFK-detection)
## Supported Desktop Environments
* KDE Plasma 6
If this works on any other environment or if you want to add support for
another environment, pull requests are welcome and appreciated.
## How it Works
A native helper program creates a websocket server on the local machine.
It watches for when the system screensaver is becomes active and informs
any connected websocket clients of the screensaver state.
The BetterDiscord plugin connects to the native helper program and updates
the Discord AFK status based on the screensaver state.
## Installation & Setup
TODO Nix Flake / Home Manager
### Manual
You will need:
* The `go` compiler.
* The `nodejs` runtime and `npm` package manager.
* GNU `make`.
#### Flatpak Discord
```bash
make -C plugin install-flatpak
make -C helper install
```
## Alternatives
* [WayAFK](https://github.com/Colonial-Dev/WayAFK)
Credit to [@Colonial-Dev](https://github.com/Colonial-Dev) for the original idea.