AvengeMedia / AvengeMedia/dms-plugins

DankActions: conditional rendering based on exit code

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
QML
Stars
84
Forks
25
Avg merge
17h 11m
Merged PRs (30d)
1

Description

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.

Contributor guide

Open the contributing guide

Research direction

Start by locating the DankActions rendering and layout code for display commands in the Dank bar. Trace how an action's exit code could control visibility, then verify that hidden actions no longer leave unwanted spacing. Done means conditional show/hide behavior works without layout gaps.

Written by the indexing model from the issue text.

Assessment

Domain
desktop, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.