feat(plugins): WaylandIdle#4375
Open
T1mbits wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your Changes
A plugin to implement the automatic idle detection seen on the official Discord desktop client for Vesktop on Wayland Linux.
A native module needs to be merged into Vesktop for this to work (Vencord/Vesktop#1280). I'm pretty sure loading this plugin on versions and platforms that don't have the module don't break anything, but I've only been able to test versions without the module on linux, so any tests on other platforms would be really appreciated!
I'm not sure if I'm misremembering but I think idling works on Xorg and other platforms, but if it doesn't please let me know so I can add patches to make all platforms idle properly.
Fully tested on NixOS 26.11 unstable with niri 26.04, compatible with CustomIdle.
Some notes:
ext-idle-notify-v1. Compositors such as Mutter (used by GNOME) will not work without extending the native module for environment specific implementations. If somebody wants to implement that stuff later it shouldn't be too difficult to do so by modifying the native module.Checklist before submitting