#3996·Waybar

[Feature request] Custom script execution for on-click event in "wlr/taskbar"

Author: dirDahsulCreated Mar 22, 2025Updated Sep 26, 2026
Labelsbugenhancementmemorycustom

Hello,

Not really an issue, more like a request? I would like to do my own custom functionality for event execution. I'm refering to the "on-click" event for "wlr/taskbar". https://github.com/Alexays/Waybar/wiki/Module:-Taskbar

Basically, would like to not be restricted to pre-defined actions: activate Bring the application into foreground. minimize Toggle application's minimized state. minimize-raise Bring the application into foreground or toggle its minimized state. maximize Toggle application's maximized state. fullscreen Toggle application's fullscreen state. close Close the application.

Is there a way to execute a custom script for "on-click", and if not, is there a workaround for achieving that result? For me, I would like: "on-click": "bash script.sh {active} {state}", where I'm passing current window data, such as:

  • is window in foreground (active)
  • is window minimized/maximized (state)

It’s also fine if active and state can’t be passed to a custom script as data, I am fine with either scenario. Just give ability for custom code plez, much plez, very thamks