mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 09:15:22 +01:00
[GH-ISSUE #80] Support for simple labels #1452
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#1452
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JustSimplyKyle on GitHub (Mar 1, 2023).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/80
Is your feature request related to a problem? Please describe.
currently(at least not without using the custom module), it's not possible to create a module that has two running script. (see e.g.)
scripts/wifi_icon scripts/wifi_essidDescribe the solution you'd like
We can either expand the current script module(by adding an option maybe called
format)or create a new module that supports the short-hand for scripts(
{{script}})Describe alternatives you've considered

Using the custom module, which works but... it's not elegant
Additional context
While using the custom module workaround. I've found one tiny issue with the label set to this
{{100:scripts/wifi_icon scripts/wifi_essid}}it sometimes would output this instead. but sometimes it works.
i'm guessing it's somewhat of an racing condition? or does ironbar simply output the script which got executed first
@JakeStanger commented on GitHub (Mar 1, 2023):
Agreed it could be more elegant for simple scenarios like this. I'm not sure how I want to tackle it yet, but will do some planning when I look at the other changes for 0.12. This will be fairly low priority, since there is a working solution for this already via
custom.Regarding the additional context, the system to embed scripts within text is shared across the bar, so I am almost certain that is the same issue as #69. It most likely is a race condition in that the first script to return gets added first, which is not supposed to happen. I'm hoping to look at that in the next few days.
@JakeStanger commented on GitHub (Apr 7, 2023):
I've opted to add a new module called
labelwhich takes a singlelabeloption. The eventual plan is to migratecustomto use the modules, so that it relies on this new module to remove the duplication.