[GH-ISSUE #906] Disable Popup and "on_click" not working #273

Closed
opened 2026-05-22 21:52:21 +01:00 by JakeStanger · 1 comment
Owner

Originally created by @Q10ng on GitHub (Mar 17, 2025).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/906

Describe the bug

"disable_popup" isn't working for my music module nor is it truncating properly when using truncate.max_length. Also when i disable popups on my sound module i have to double click to trigger "on_click".

To Reproduce
Steps to reproduce the behavior:

  1. Attempt to disable popup by using "disable_popup":true in your json file.

  2. Add "on_scroll" condition.

  3. Popup doesn't disable.

  4. For sound, disable popups and set "on_click" to mute audio.

  5. Double click for expected mute.

Expected behavior

disable popup should have disabled the music popup but it didn't even though the code was working before i added "on_scroll" options.

System information:

  • Distro: Arch linux
  • Compositor: Hyprland
  • Ironbar version: 0.16.1

Configuration

Share your bar configuration and stylesheet as applicable:

Config
    {
        "type":"music",
        "disable_popup":true,
        "truncate":"start",
        "truncate.mode":"start",
        "truncate.length": 2,
        "truncate.max_length": 2,
        "on_click": "!(playerctl play-pause)",
        "on_scroll_up": "!(playerctl next)",
        "on_scroll_up": "!(playerctl previous)",
        "icons": {
            "play": "",
            "pause": ""
          }
                      
    },

    }

    {
        "type":"volume",
        "disable_popup":true,
        "on_scroll_up":"wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+",
        "on_scroll_down":"wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-",
        "on_click_left":"wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"

    }
Originally created by @Q10ng on GitHub (Mar 17, 2025). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/906 **Describe the bug** > "disable_popup" isn't working for my music module nor is it truncating properly when using truncate.max_length. Also when i disable popups on my sound module i have to double click to trigger "on_click". **To Reproduce** Steps to reproduce the behavior: 1. Attempt to disable popup by using "disable_popup":true in your json file. 2. Add "on_scroll" condition. 3. Popup doesn't disable. 1. For sound, disable popups and set "on_click" to mute audio. 2. Double click for expected mute. **Expected behavior** > disable popup should have disabled the music popup but it didn't even though the code was working before i added "on_scroll" options. **System information:** - Distro: Arch linux - Compositor: Hyprland - Ironbar version: 0.16.1 **Configuration** > Share your bar configuration and stylesheet as applicable: <details><summary>Config</summary> { "type":"music", "disable_popup":true, "truncate":"start", "truncate.mode":"start", "truncate.length": 2, "truncate.max_length": 2, "on_click": "!(playerctl play-pause)", "on_scroll_up": "!(playerctl next)", "on_scroll_up": "!(playerctl previous)", "icons": { "play": "", "pause": "" } }, } { "type":"volume", "disable_popup":true, "on_scroll_up":"wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+", "on_scroll_down":"wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-", "on_click_left":"wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" }
JakeStanger 2026-05-22 21:52:21 +01:00
Author
Owner

@Q10ng commented on GitHub (Mar 17, 2025):

it seems that adding the "on_scroll" statements was the problem but i kind of need those for how i want my bar to work.
Removing the "on_scroll" statements seems to make the music popup disable properly but it still doesn't fix the double click issue and i have to specify "on_click_left" or "on_click_right" for it to work at all even with double clicks but for some reason only on_click_left needs to be double clicked on_click_right works with single click.

<!-- gh-comment-id:2731125957 --> @Q10ng commented on GitHub (Mar 17, 2025): it seems that adding the "on_scroll" statements was the problem but i kind of need those for how i want my bar to work. Removing the "on_scroll" statements seems to make the music popup disable properly but it still doesn't fix the double click issue and i have to specify "on_click_left" or "on_click_right" for it to work at all even with double clicks but for some reason only on_click_left needs to be double clicked on_click_right works with single click.
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#273
No description provided.