maralorn,
@maralorn@chaos.social avatar

Wow, I just got capturing to run with a based compositor (like , I use ) 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.

cc @nomeata

nomeata,
@nomeata@mastodon.online avatar

@maralorn not using Wayland yet myself, but according to this comment arbtt just works on Wayland:
https://github.com/nomeata/arbtt/issues/153#issuecomment-1887857132

Is that not true?

maralorn,
@maralorn@chaos.social avatar

@nomeata It didn’t for me. Neither on river nor on gnome. I used the arbtt gnome extension for a while but gnome extensions break far too often.

nomeata,
@nomeata@mastodon.online avatar

@maralorn Guess it was too good to be true if it was just working…

lhp,
@lhp@mastodon.social avatar

@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,
@maralorn@chaos.social avatar

@lhp Ah, interesting. I think the script is robust under adding fields, so this should be fine.

What other protocol are you implementing don’t all wlroots compositors use the same?

lhp,
@lhp@mastodon.social avatar

@maralorn the foreign toplevel protocol got upstreamed to wayland-protocols and with that gained an event, lost all requests and lost some other events.

lhp,
@lhp@mastodon.social avatar

@maralorn I decided to support both in lswt for now.

maralorn,
@maralorn@chaos.social avatar

@lhp Ah, I see. Thank, you.

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.

lhp,
@lhp@mastodon.social avatar

@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.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • mdbf
  • ethstaker
  • magazineikmin
  • cubers
  • rosin
  • thenastyranch
  • Youngstown
  • InstantRegret
  • slotface
  • osvaldo12
  • kavyap
  • khanakhh
  • Durango
  • megavids
  • everett
  • tacticalgear
  • modclub
  • normalnudes
  • ngwrru68w68
  • cisconetworking
  • tester
  • GTA5RPClips
  • Leos
  • anitta
  • provamag3
  • JUstTest
  • lostlight
  • All magazines