You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is... Obviously rather unwieldy. Besides the if/else chain in ternary syntax, there's a bunch of code for special casing on jq output, and I'm sure this adds all kinds of pointless overhead parsing json over and over again.
Is there a way to get e.g. the output of jq(EWW_BATTERY, "first(.[])" in some kind of temporary variable so I can skip all that code? Is this what #430 is about?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm finally starting to use eww for more than super simple things, and I'm finding myself writing things like this:
This is... Obviously rather unwieldy. Besides the if/else chain in ternary syntax, there's a bunch of code for special casing on
jq
output, and I'm sure this adds all kinds of pointless overhead parsing json over and over again.Is there a way to get e.g. the output of
jq(EWW_BATTERY, "first(.[])"
in some kind of temporary variable so I can skip all that code? Is this what #430 is about?Beta Was this translation helpful? Give feedback.
All reactions