lasers

Results 122 comments of lasers

Is this for `external_script out-of-date` only? What does `aur-out-of-date -user syyyr -json` looks like? I think we can work with this one. >Although, there already is a script for Arch...

Can you try this? https://github.com/lasers/py3status/tree/newmodule-json_lines

>rewrite my script so that outputs a JSON instead of HTML. Tbh I'd rather do formatting inside the py3status config, instead of writing HTML in the script. Just one thing....

I'm not planning on doing anything with `json_lines` because `aur-out-of-date -json` is invalid JSON. I don't think a flag is needed for `external_script`... Just that external_script should be able to...

Maybe this work... ```diff diff --git a/py3status/modules/external_script.py b/py3status/modules/external_script.py index f103c95..64bf6a4 100644 --- a/py3status/modules/external_script.py +++ b/py3status/modules/external_script.py @@ -105,7 +105,7 @@ class Py3status: output = "" response["full_text"] = self.py3.safe_format( - self.format, {"output":...

I assume `$OUTPUT_PART` would be (package) `{name}` because of different colorized composites. If you don't colorize anything, then I think you would be getting one whole thing (maybe just non-composite...

> Even if I print the format string like this: You can use `[\?soft ]` or just a space ` ` instead of `[\?color=black&show ]`.

Added `[if=$NEW ...]` untested example to illustrate how the `lightgrey` dash can be skipped due to empty upstream in case you're not familiar with the formatter. ```bash echo "[\?color=lightblue&show $NAME]...

Ideally, we should separate this into `artist` and `album`. Who volunteer? ``` "([\(\[][^)\]]*?(bonus|demo|edit|explicit|extended|feat|mono|remaster|stereo|version)[^)\]]*?[\)\]])", "([\-,;/])([^\-,;/])*(bonus|demo|edit|explicit|extended|feat|mono|remaster|stereo|version).*", ```

I'd like something like this, but verification could be done using zipped pkgs instead of extracted zips... based on checksum. That way, the zip files could be named anything, but...