Replies: 2 comments 4 replies
-
|
You would probably need a wrapper script to make sure it opens the way you want. For example, I have a variable for floating terms to open btop, when I click on CPU: ... and then in my waybar config: But as I said, I use Sway which comes with Swaymsg, which sends messages to Sway over the IPC Socket. Hope it helps a bit. |
Beta Was this translation helpful? Give feedback.
-
|
https://github.com/Alexays/Waybar/wiki/Module:-Taskbar
https://github.com/Alexays/Waybar/wiki/Module:-CPU
(wlr/taskbar: The action which should be triggered) OP is referring to wlr/taskbar, which doesn't seem to let you execute commands, you only get to do 'actions'
I've been looking and the answer seems like no to me; You don't get to execute commands via wlr/taskbar click events. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
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 {state}", where I'm passing Format replacements to the script, even if nothing is passed to the script, I'm also okay. Is there a way to have it execute custom functionality and not be restricted?
Beta Was this translation helpful? Give feedback.
All reactions