nwg-piotr / nwg-wrapper

Wrapper to display a script output or a text file content on the desktop in sway or other wlroots-based compositors
MIT License
139 stars 8 forks source link

Add sig refresh #10

Closed hillyu closed 2 years ago

hillyu commented 2 years ago

it would be useful to add custom signals for script refresh so the script can be triggered by signals instead of constantly polling/refreshing. This is useful for things like album cover update on music player's track/status changes. By the way, do you guys think using real-time signal would be better? i.e. RTMIN+No. Think those status bars mostly use that for triggering update.

nwg-piotr commented 2 years ago

Sorry for the late reply.

I'm working hard on integration of all the nwg-shell stuff in a real shell, for use with ArchLabs Linux. Wouldn't like to make changes before I'm adding the wrapper, which should happen soon. I'll get back to your PR as soon as I can.

hillyu commented 2 years ago

sure thing, no worries, I made a few more changes here. Including making the anchor for top/bottom checking align and anchor to one at a time, instead of anchor to both top and bottom at the same time, old way would make aligning multiple widget a real pain. Take your time and really like this project, I made some really good looking yet practical dashboards with it :D keep up the good work! image

whatever change I made will be updated here: https://github.com/hillyu/nwg-wrapper/tree/dev.

nwg-piotr commented 2 years ago

It looks very well. Would you mind contributing some of your work, e.g. to the examples folder?

hillyu commented 2 years ago

Will do. It's still a work in progress and I will certainly contribute once they are ready.

nwg-piotr commented 2 years ago

Thanks in advance!

Funny thing: this is just a simple script, which I wrote in one evening, on request of some guy on reddit. Good thing it turns out useful to more people.

hillyu commented 2 years ago

11 selected a few script I did as an example.

nwg-piotr commented 2 years ago

Thank you! I have a few days off starting from tomorrow. Will review/merge your work.