![]() Together with the idle.xml protocol which is pretty widely implemented by wayland compositors there's a complete implementation with afk-detection for ActivityWatch in aw-watcher-window-wayland. The wlr-foreign-toplevel-management protocol is (at the time of writing this) implemented by the Sway, Mir, Phosh and Wayfire compositors. There is a PR on aw-watcher-window to add this, but it needs some clean-up and afk-support if that's possible. It is heavily dependent on Gnome internal API to work so there is no chance of it becoming a standard API. The Gnome-specific API will likely break between Gnome versions, but it works. ![]() The wlr-foreign-toplevel-management Wayland protocol (unfortunately not implemented by Gnome).A Gnome-specific JavaScript API which can be accessed over DBus. RESCUETIME LINUX WINDOWSThe two previous answers are outdated, this is the current state of querying appnames and titles of windows in (Gnome) Wayland. Tl dr: How do I get the active window on Gnome when using Wayland? I'm not saying it should be included or anything, but as it looks now every DE would need to implement it themselves if these kind of applications are to be supportedġ5:25:46 ErikBjare So wondering if anyone knew the teams working with Wayland on Gnome for exampleġ5:26:11 ErikBjare But thanks for confirmingġ5:26:29 blocage ErikBjare, DE should create a custom extension, or use D-bus or other IPCġ5:27:31 blocage ErikBjare, I guess some compositor are around here, but I do not know myself if there is such extension alreadyġ5:28:36 ErikBjare I don't think there is (I've done quite a bit of searching), so I guess I need to catch the attention of some DE developersġ5:29:42 ErikBjare blocage: Would you mind if I shared logs of our conversation in the issue?ġ5:30:05 blocage just use it :) it's publicĮdit 2: Filed an enhancement issue in the Gnome bugtracker. I know this isn't exactly the right place to ask, but I was wondering if anyone knew anything about getting the active window in any Wayland-using DE.ġ5:20:57 ErikBjare Created a question on SO: ġ5:21:25 ErikBjare Here's the issue in my repo for it: ġ5:22:54 ErikBjare There are a bunch of other applications that depend on it (RescueTime, selfspy, arbtt, ulogme, etc.) so they'd need it as wellġ5:24:23 blocage ErikBjare, in the core protocol you cannot know which windnow has the keyboard or cursor focusġ5:24:39 blocage ErikBjare, in the wayland core protocol *ġ5:25:10 blocage ErikBjare, you can just know if your window has the focus or not, it a design choiseġ5:25:23 blocage avoid client spying each otherġ5:25:25 ErikBjare blocage: I'm aware, that's my reason for concern. RESCUETIME LINUX SOFTWAREI'm working on a piece of self-tracking software called ActivityWatch (). I'm now interested in implementing support for Gnome to start off with and follow up with others as the path becomes more clear.Ī similar question concerning Weston has been asked here: get the list of active windows in wayland westonĮdit: I asked in #wayland on Freenode, got the following reply: 15:20:44 ErikBjare Hello everybody. There are other applications like ActivityWatch that would require the same functionality (RescueTime, arbtt, selfspy, etc.), they don't seem to support Wayland right now and I can't find any details about them planning to do so. ![]() As larger distros are adopting Wayland as the default display server protocol (Fedora 25 is already using it, Ubuntu will switch in 17.10 which is coming soon) the situation is going to get more critical over time. But today we got our first user request for Wayland support by an actual Wayland user. ![]() Hopefully they'll eventually converge and have some common interface to get this done, but I'm not holding my breath. So my fear is that we will have to implement support for each and every desktop environment available for Wayland (assuming they'll provide the capability to get information about the active window at all). In the past, this has been done using on Linux using xprop and now python-xlib without issue.īut now we have a problem: Wayland is on the rise, and as far as I can see Wayland has no notion of an active window. One of the core things we do is log information about the active window (class and title). Basically an attempt at addressing some of the issues with: RescueTime, selfspy, arbtt, etc. Background: I'm working on a piece of software called ActivityWatch that logs what you do on your computer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |