Skip to content

Switching Colors based on exec output value #3454

Answered by RobertMueller2
Dutt-A asked this question in Q&A
Discussion options

You must be logged in to vote

Well, this should work. I'm not sure what to do with the "eye" character and the notification icon my examples already had, but I think it's close enough. ;) I also don't have rofication, so just using a mock script that reacts to an existing text file, the [ -e _testfile ] can be replaced with rofication > /dev/null 2>&1

{
    "layer": "top", // Waybar at top layer
    "position": "top", // Waybar position (top|bottom|left|right)
    "height" : 50,
    "modules-center": ["custom/rofication"],

    "custom/rofication": {
        "format": "{} ", /* this is a unicode character for an eye */
        "interval": 2,
        "exec": "./rofication-status",
        "on-click": "rofication",
   …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Dutt-A
Comment options

Answer selected by Dutt-A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants