glzr-io / zebar

Zebar is a tool for creating customizable and cross-platform taskbars, desktop widgets, and popups.
GNU General Public License v3.0
161 stars 13 forks source link

Question: Can I switch workspaces via buttons on bar? #42

Open thearturca opened 3 months ago

thearturca commented 3 months ago

I wanna do something like that. Is that possible?

<button onClick={{() => komorebi.currentMonitor.focusWorkspace(workspace.name)}}>
{{ workspace.name }}
</button>
lars-berger commented 3 months ago

Not just yet. Currently there isn't a way to add event handlers (eg. click, mouse over, etc) in Zebar. I'm actively working on getting this added soon though.