komorebi icon indicating copy to clipboard operation
komorebi copied to clipboard

[FEAT]: Watching Variables (e.g. workspace number)

Open skulldogged opened this issue 2 years ago • 6 comments

Is your feature request related to a problem? Please describe. I've added a widget to the rainmeter skin I use that shows which komorebi workspace I'm on. As of right now though, it doesn't seem I can properly "watch" the workspace value for changes. Currently I'm just re-running komorebic query focused-workspace-index every second.

Describe the solution you'd like A komorebic command for watching values for changes, outputting the new value to stdout when it changes.

Describe alternatives you've considered As said above, I just re-run the query every second.

Additional context N/A

skulldogged avatar Jan 13 '24 02:01 skulldogged

(Apologies if this already exists, but from what I've seen in the documentation + issues it doesn't seem to be.)

skulldogged avatar Jan 13 '24 02:01 skulldogged

This is an interesting idea; would it be enough to terminate reach returned update value with a newline?

LGUG2Z avatar Jan 13 '24 17:01 LGUG2Z

Also I'd love to see a screenshot of what you've made in Rainmeter!

LGUG2Z avatar Jan 13 '24 17:01 LGUG2Z

they would be referring to something like this:

Rainmeter_rur94HLqc6

(i coincidentally fell upon this post xd)

modkavartini avatar Jan 13 '24 22:01 modkavartini

This is an interesting idea; would it be enough to terminate reach returned update value with a newline?

Honestly, I'm not sure... I don't see any reason why that would be bad, but I'm not sure if it would be the best approach either.

skulldogged avatar Jan 14 '24 21:01 skulldogged

Thanks a lot @modkavartini , super useful widget, I had a bad experience with bulky rm skins years ago but this bar works really well and was my missing bit after swtiching from GlazeWM to komorebi!

@LGUG2Z IMHO it could be referenced in the readme since yasb is not straightforward to install and quite bulky in the end

melMass avatar Jan 31 '24 13:01 melMass

I guess this can be closed now that we have event subscription

melMass avatar Mar 21 '24 12:03 melMass

Yeah, since you can now subscribe to events with the entire state using both UDS and Named Pipes I'm gonna close this out.

LGUG2Z avatar Mar 21 '24 16:03 LGUG2Z