[GH-ISSUE #131] Support for normal module types in custom modules. #7096

Closed
opened 2026-05-23 02:52:28 +01:00 by JakeStanger · 5 comments
Owner

Originally created by @JustSimplyKyle on GitHub (Apr 30, 2023).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/131

Is your feature request related to a problem? Please describe.
I want to create a custom module that has the module focused, because I want to make animations!
And to make those animations, they have to be in the same top-level css class.

Describe the solution you'd like
pseudo config:

$test = {
    type = "custom"
    class = "focus"
    on_mouse_enter = "rm /tmp/window.lock"
    on_mouse_exit = "touch /tmp/window.lock"
    bar = [
        {
            type = "focused"
            show_icon = true
            show_title = true
            icon_size = 24
            icon_theme = "Paper"
        }
        {
            type = "label"
            transition_duration = 400
            label = " Maximize, Close"
            show_if = "0:~/.config/ironbar/states/window/state.sh"
        }
    ]
}

Another alternative solution would be making it possible to have a "box" to contain normal modules.

Additonal Context:
https://github.com/JakeStanger/ironbar/issues/34
that issue has been resolved, but it turned into supporting script instead

Originally created by @JustSimplyKyle on GitHub (Apr 30, 2023). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/131 **Is your feature request related to a problem? Please describe.** I want to create a custom module that has the module `focused`, because I want to make animations! And to make those animations, they have to be in the same top-level css class. **Describe the solution you'd like** pseudo config: ```corn $test = { type = "custom" class = "focus" on_mouse_enter = "rm /tmp/window.lock" on_mouse_exit = "touch /tmp/window.lock" bar = [ { type = "focused" show_icon = true show_title = true icon_size = 24 icon_theme = "Paper" } { type = "label" transition_duration = 400 label = " Maximize, Close" show_if = "0:~/.config/ironbar/states/window/state.sh" } ] } ``` Another alternative solution would be making it possible to have a "box" to contain normal modules. Additonal Context: https://github.com/JakeStanger/ironbar/issues/34 that issue has been resolved, but it turned into supporting script instead
Author
Owner

@JakeStanger commented on GitHub (Apr 30, 2023):

This is an eventual goal. What I'd like to do is have every custom widget actually be a standalone module, and then custom is purely composed out of modules. That should hopefully simplify things a bit from both a code and user perspective.

<!-- gh-comment-id:1529150544 --> @JakeStanger commented on GitHub (Apr 30, 2023): This is an eventual goal. What I'd like to do is have every custom widget actually be a standalone module, and then custom is purely composed out of modules. That should hopefully simplify things a bit from both a code and user perspective.
Author
Owner

@yavko commented on GitHub (Jan 26, 2024):

It's been 9 months so I just wanna know if this is still planned

<!-- gh-comment-id:1911231710 --> @yavko commented on GitHub (Jan 26, 2024): It's been 9 months so I just wanna know if this is still planned
Author
Owner

@JakeStanger commented on GitHub (Jan 26, 2024):

I think so, I think it still sounds like a very powerful feature to tie everything together. It's still going to be a long time before I pick this up though.

<!-- gh-comment-id:1911685078 --> @JakeStanger commented on GitHub (Jan 26, 2024): I think so, I think it still sounds like a very powerful feature to tie everything together. It's still going to be a long time before I pick this up though.
Author
Owner

@JakeStanger commented on GitHub (Mar 10, 2024):

It's still going to be a long time before I pick this up though.

, he lied

<!-- gh-comment-id:1987404927 --> @JakeStanger commented on GitHub (Mar 10, 2024): > It's still going to be a long time before I pick this up though. , he lied
Author
Owner

@yavko commented on GitHub (Mar 11, 2024):

It's still going to be a long time before I pick this up though.

, he lied

yay

<!-- gh-comment-id:1987496899 --> @yavko commented on GitHub (Mar 11, 2024): > > It's still going to be a long time before I pick this up though. > > , he lied yay
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#7096
No description provided.