Skip to content

Add mouse wheel support for switching taskbar apps #897

@jinjiwu

Description

@jinjiwu

What is the request?

It would be useful to switch between taskbar applications by scrolling the mouse wheel while hovering over the YASB taskbar or bar area.

Expected Behavior

  • Scroll up: switch to the previous app/window
  • Scroll down: switch to the next app/window

The switching order could follow the visual order of taskbar items.

Use Case

This would make mouse-based window switching faster, without needing to click each taskbar item or use Alt + Tab.

Why is it useful?

This would make window switching faster and more convenient, especially for users who prefer mouse-based workflows.

Instead of clicking each taskbar item manually or using keyboard shortcuts like Alt + Tab, users could simply move the cursor to the taskbar area and use the mouse wheel to switch between open applications.

This behavior would be similar to some desktop environments or taskbar utilities where scrolling over the taskbar cycles through windows.

How could it be implemented?

It could be implemented as optional callbacks, for example:

taskbar:
  callbacks:
    on_left: toggle_window
    on_middle: do_nothing
    on_right: context_menu
    on_scroll_up: previous_window
    on_scroll_down: next_window

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new functionality or an enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions