Skip to content

[Feature request] Support a small subset of CSS (or CSS-like) rules #1822

@rubyFeedback

Description

@rubyFeedback

I would like to propose that conky supports, in addition to the current way, CSS-like properties. (If this is the case it would be nice to indicate this via the main README).

Not all CSS properties make sense, but things such as colors would be nice; and perhaps more effects if conky supports
these. Would be even fun to see conky support hovering properties, and neon-like glow effects, but I don't want to make this request here too fancy, as someone has to implement that, and that may take time; and time is a finite resource. So, I would suggest CSS-like properties.

One important part of this proposal is to support external files - here, I mean local files, but something like:

conky_colours.css

This can also be used on a website, by the way, so we get both: support on the www, AND support within conky itself. People could also more easily share their conky-rc files, e. g. the skeleton where the logic resides, and then shuffle in or out different .css files (or, rather, the SUBSET that conky may support; again I am not saying all of CSS should be supported, only the parts that may make sense for conky).

The benefit here would be that it lowers the entry-threshold for new users; and another benefit is that we can share and re-use the main design (excluding the skeleton, although it would be nice if conky could support HTML widget-like properties too, but for the purpose of THIS issue request, I really only want to focus on CSS-like properties. Someone else would have to propose HTML-like widget support. Buttons would be cool, but here I focus only on CSS).

That's mostly the gist of it. Perhaps ID (identifiers) may have to be supported too, so we could arbitrarily name the conky properties, such as foo1, foo2, foo3, and within the CSS identifier also refer to them e. g. #foo1. Note that I am not necessarily suggesting conky supports such sub-elements either; for a first step it should suffice if conky can work on perhaps simple:

.pink  { color: pink }

Or something like that. (Or even RGB colours if that can be parsed); and the ability to tag them onto conky-elements, such as "for this header, I want to use green colour and padding 8px and underlined text". Something like that, but usable via CSS properties IN ADDITION to the current way that works. So this is an additional use case, not at all meant to REMOVE the existing way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featuresuggest addition of new functionality that isn't currently supported in any way

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions