Skip to content

allow the use of custom shell command actions in wlr/taskbar #4720

@nuclearcodecat

Description

@nuclearcodecat

wlr/taskbar only allows "actions" in on-* config entries. i'd like to execute a shell command, or at least get to run a shell script before and after the action (synchronously). i need this so i can disable hyprland cursor warps before activating the new window and for enabling them again after. another way could be passing some sort of window-identifying property to a new on-click-cmd config property as an argument.

this is my very ugly and incorrect implementation which adds the before-action and after-action options for demonstration:
https://github.com/nuclearcodecat/Waybar/tree/wlr-taskbar-onclick-cmd

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions