Skip to content

DankActions: conditional rendering based on exit code #17

@michaelowens

Description

@michaelowens

Love DankActions! It's been a nice addition in an attempt to replace waybar, but one of the things I am struggling to do is have conditional elements in my dank bar. I think it could be nice to be able to conditionally show/hide actions depending on the exit code of a display command.

I had a quick look around to send a PR instead, but I'm struggling to fully remove the spacing of the hidden item so maybe someone with a better understanding of the layouting can do it more reasonable than me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions