Skip to content

hyprland/workspaces: disabling enable-bar-scroll has no effect with custom on-scroll-down and on-scroll-up commands #5229

Description

@xfzv

Describe the bug
Disabling enable-bar-scroll for hyprland/workspaces module has no effect on my end. I'm using custom on-scroll-down and on-scroll-up commands.

To reproduce
Use the following minimal config and scroll up or down anywhere on the bar: cycling throughout workspaces on the entire bar works.

[
  {
    "hyprland/workspaces": {
      "on-scroll-down": "/nix/store/xhmd6b61rnyp4061njm8cgi9d7z115jn-hyprland-0.56.0/bin/hyprctl dispatch 'hl.dsp.focus({ workspace = \"+1\" })'",
      "on-scroll-up": "/nix/store/xhmd6b61rnyp4061njm8cgi9d7z115jn-hyprland-0.56.0/bin/hyprctl dispatch 'hl.dsp.focus({ workspace = \"-1\" })'",
      "enable-bar-scroll": false
    },
    "modules-left": [
      "hyprland/workspaces"
    ]
  }
]

Expected behaviour
"enable-bar-scroll": false disables cycling through workspaces on the entire bar.

Environment

  • Waybar version (waybar --version): Waybar v0.15.0 - 98b2a56
  • Installed from (distro package / source / other): Provided flake
  • Compositor and version (Sway, Hyprland, River, …): Hyprland 0.56.0 (36b2e0cfe0c6094dbc47bd42a437431315bb3087)

Debug output
Run waybar -l debug and paste any relevant output:

[2026-07-30 16:25:42.996] [info] no JOURNAL_STREAM, logging to console
[2026-07-30 16:25:43.092] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config
[2026-07-30 16:25:43.092] [debug] Found config file: /home/xfzv/.config/waybar/config
[2026-07-30 16:25:43.092] [info] Using configuration file /home/xfzv/.config/waybar/config
[2026-07-30 16:25:43.100] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/style.css
[2026-07-30 16:25:43.100] [debug] Try expanding: $HOME/.config/waybar/style.css
[2026-07-30 16:25:43.100] [debug] Try expanding: $HOME/waybar/style.css
[2026-07-30 16:25:43.100] [debug] Try expanding: /etc/xdg/waybar/style.css
[2026-07-30 16:25:43.100] [debug] Try expanding: /nix/store/6hg87f9vxfwx80yh1w7fpakmpjxcm91v-waybar-0.15.0+date=2026-07-06_98b2a56/etc/xdg/waybar/style.css
[2026-07-30 16:25:43.100] [debug] Found config file: /nix/store/6hg87f9vxfwx80yh1w7fpakmpjxcm91v-waybar-0.15.0+date=2026-07-06_98b2a56/etc/xdg/waybar/style.css
[2026-07-30 16:25:43.100] [info] Using CSS file /nix/store/6hg87f9vxfwx80yh1w7fpakmpjxcm91v-waybar-0.15.0+date=2026-07-06_98b2a56/etc/xdg/waybar/style.css
[2026-07-30 16:25:43.104] [debug] Bound ext-idle-notifier-v1 at version 2
[2026-07-30 16:25:43.111] [debug] Output detection done: LVDS-1 (LG Display 0x02DC )
[2026-07-30 16:25:43.113] [debug] window-rewrite is not defined or is not an object, using default rules.
[2026-07-30 16:25:43.113] [info] Hyprland IPC starting
[2026-07-30 16:25:43.113] [debug] Initializing workspaces
[2026-07-30 16:25:43.114] [debug] Initializing persistent workspaces
[2026-07-30 16:25:43.115] [debug] Output LVDS-1 mapped (DPMS on), resuming modules
[2026-07-30 16:25:43.115] [debug] GTK widget tree:
window#waybar.background.top.LVDS-1..mode-default:dir(ltr)
  decoration:dir(ltr)
  box.horizontal:dir(ltr)
    box.horizontal.modules-left:dir(ltr)
      widget:dir(ltr)
        box#workspaces.horizontal.module:dir(ltr)
    box.horizontal.modules-center:dir(ltr)
    box.horizontal.modules-right:dir(ltr)

[2026-07-30 16:25:43.116] [info] Bar configured (width: 1366, height: 1) for output: LVDS-1
[2026-07-30 16:25:43.120] [debug] hyprland IPC received openlayer>>waybar
[2026-07-30 16:25:43.122] [debug] Creating workspace 9
[2026-07-30 16:25:43.123] [debug] Creating workspace 4
[2026-07-30 16:25:43.124] [debug] Creating workspace 2
[2026-07-30 16:25:43.124] [debug] Creating workspace 3
[2026-07-30 16:25:43.124] [debug] Creating workspace 1
[2026-07-30 16:25:43.134] [info] Bar configured (width: 1366, height: 19) for output: LVDS-1
[2026-07-30 16:25:45.884] [debug] Added child to reap list: 44111
[2026-07-30 16:25:45.909] [debug] hyprland IPC received activewindow>>firefox,Issues · Alexays/Waybar — Mozilla Firefox
[2026-07-30 16:25:45.909] [debug] hyprland IPC received activewindowv2>>57c80f36c4c0
[2026-07-30 16:25:45.909] [debug] hyprland IPC received workspace>>2
[2026-07-30 16:25:45.909] [debug] hyprland IPC received workspacev2>>2,2
ok
[2026-07-30 16:25:45.910] [debug] Received SIGCHLD in signalThread
[2026-07-30 16:25:45.910] [debug] Reaped child with PID: 44111
[2026-07-30 16:25:47.084] [debug] Added child to reap list: 44113
[2026-07-30 16:25:47.112] [debug] hyprland IPC received activewindow>>Term, waybar -l debug > /tmp/waybar.log
[2026-07-30 16:25:47.112] [debug] hyprland IPC received activewindowv2>>57c80f719940
[2026-07-30 16:25:47.112] [debug] hyprland IPC received workspace>>1
[2026-07-30 16:25:47.112] [debug] hyprland IPC received workspacev2>>1,1
ok
[2026-07-30 16:25:47.113] [debug] Received SIGCHLD in signalThread
[2026-07-30 16:25:47.113] [debug] Reaped child with PID: 44113
[2026-07-30 16:25:48.149] [debug] Added child to reap list: 44115
[2026-07-30 16:25:48.189] [debug] hyprland IPC received activewindow>>firefox,Issues · Alexays/Waybar — Mozilla Firefox
[2026-07-30 16:25:48.189] [debug] hyprland IPC received activewindowv2>>57c80f36c4c0
[2026-07-30 16:25:48.189] [debug] hyprland IPC received workspace>>2
[2026-07-30 16:25:48.189] [debug] hyprland IPC received workspacev2>>2,2
ok
[2026-07-30 16:25:48.190] [debug] Received SIGCHLD in signalThread
[2026-07-30 16:25:48.191] [debug] Reaped child with PID: 44115
[2026-07-30 16:25:48.669] [debug] Added child to reap list: 44118
[2026-07-30 16:25:48.700] [debug] hyprland IPC received activewindow>>Term, waybar -l debug > /tmp/waybar.log
[2026-07-30 16:25:48.700] [debug] hyprland IPC received activewindowv2>>57c80f719940
[2026-07-30 16:25:48.700] [debug] hyprland IPC received workspace>>1
[2026-07-30 16:25:48.700] [debug] hyprland IPC received workspacev2>>1,1
ok
[2026-07-30 16:25:48.701] [debug] Received SIGCHLD in signalThread
[2026-07-30 16:25:48.701] [debug] Reaped child with PID: 44118
[2026-07-30 16:25:49.477] [info] Quitting.
[2026-07-30 16:25:49.484] [info] Hyprland IPC stopping...
[2026-07-30 16:25:49.484] [debug] Hyprland IPC stopped

Additional context
If I comment out custom on-scroll-up and on-scroll-down settings (i.e. default settings for hyprland/workspaces module) then scrolling on the module doesn't work, I can't cycle through workspaces at all even if scrolling while hovering the hyprland/workspaces module.

Without on-scroll-up and on-scroll-down custom commands and with "enable-bar-scroll": true instead, then I can cycle through workspaces anywhere on the bar.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions