[GH-ISSUE #51] Usage of symbolic icons from the system icon theme #7059

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

Originally created by @aquifolly on GitHub (Jan 15, 2023).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/51

Is your feature request related to a problem? Please describe.

having to use a nerd font for icons

Describe the solution you'd like

allow for using the icons from the system icon theme for modules/widgets

Originally created by @aquifolly on GitHub (Jan 15, 2023). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/51 **Is your feature request related to a problem? Please describe.** > having to use a nerd font for icons **Describe the solution you'd like** > allow for using the icons from the system icon theme for modules/widgets
Author
Owner

@JakeStanger commented on GitHub (Jan 16, 2023):

This is a little complex as icons are just images, so have to be added as a separate GTK widget. I could potentially add support for:

  • Adding images/icons at the start/end of widgets as some common config option (like the tooltip etc)
  • A standalone image module
  • Images in the custom module

Being able to just add icons anywhere in place of Nerd Font icons I won't do as it adds quite a lot of complexity.

<!-- gh-comment-id:1384623394 --> @JakeStanger commented on GitHub (Jan 16, 2023): This is a little complex as icons are just images, so have to be added as a separate GTK widget. I could potentially add support for: - Adding images/icons at the start/end of widgets as some common config option (like the tooltip etc) - A standalone image module - Images in the custom module Being able to just add icons anywhere in place of Nerd Font icons I won't do as it adds quite a lot of complexity.
Author
Owner

@aquifolly commented on GitHub (Jan 17, 2023):

I think maybe a combination of 1 and 3 would be good

<!-- gh-comment-id:1385230324 --> @aquifolly commented on GitHub (Jan 17, 2023): I think maybe a combination of 1 and 3 would be good
Author
Owner

@aquifolly commented on GitHub (Jan 17, 2023):

I don't really need them to be in any specific position

<!-- gh-comment-id:1385235490 --> @aquifolly commented on GitHub (Jan 17, 2023): I don't really need them to be in any specific position
Author
Owner

@JakeStanger commented on GitHub (Jan 29, 2023):

The above PR will get this sorted. I've not added the prefixes/suffixes since custom will cover that ,but you can now use images in the custom module, and inside workspace.name_map and music.icons:

let {
  $workspaces = {
    type = "workspaces"
    name_map = {
      1 = "icon:firefox"
    }
  }

  $image = {
    type = "custom"
    //                               \/ http(s) also supported
    bar = [ { type = "image" src = "file:///path/to/image.jpg" size = 32 }  ]
  }
} in {
  icon_theme = "Paper"

  left = [ $workspaces ]  right = [ $image ]
}
<!-- gh-comment-id:1407794205 --> @JakeStanger commented on GitHub (Jan 29, 2023): The above PR will get this sorted. I've not added the prefixes/suffixes since `custom` will cover that ,but you can now use images in the `custom` module, and inside `workspace.name_map` and `music.icons`: ```corn let { $workspaces = { type = "workspaces" name_map = { 1 = "icon:firefox" } } $image = { type = "custom" // \/ http(s) also supported bar = [ { type = "image" src = "file:///path/to/image.jpg" size = 32 } ] } } in { icon_theme = "Paper" left = [ $workspaces ] right = [ $image ] } ```
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#7059
No description provided.