Wow, I just got #arbtt capturing to run with a #wlroots based #wayland compositor (like #sway, I use #river) and it was surprisingly simple. Just run this command once per minute:
lswt --json | jq '{date:now|strftime("%FT%TZ"),rate:60000,inactive:0,windows:map({title,program:.app_id,active:.activated}),desktop:""}' | arbtt-import -a -t JSON
I have also a homegrown solution to set the inactive flag, but it’s not as pretty.
@maralorn@nomeata Note that the json output of lswt will change slightly when I'll eventually come around to tag a next release to include a field indicating what window information is supported (since the next version will have to support two separate protocols with non-congruent feature sets).
@maralorn the foreign toplevel protocol got upstreamed to wayland-protocols and with that gained an event, lost all requests and lost some other events.
While we are at it, do you know a way in river to query all window names together with their tags? lswt can do the one and ristate the other but I can’t correlate it.
@maralorn there is currently no way to correlate that.
However, whatever your use case may be, I suspect by the end of the year it's doable, although perhaps using a different mechanism than what river looks like right now.
Add comment