This commit is contained in:
soraefir
2026-06-05 05:33:57 +02:00
parent 1bf88a2406
commit 057a11abad
5 changed files with 20 additions and 10 deletions

View File

@@ -3,13 +3,14 @@
(defwidget workspace-mod []
(module
(eventbox
:onscroll "echo {} | sed -e \"s/up/-1/g\" -e \"s/down/+1/g\" | xargs hyprctl dispatch workspace"
:onscroll "echo {} | sed -e 's/up/-1/' -e 's/down/+1/' | xargs -I % hyprctl eval \"hl.dispatch(hl.dsp.focus({ workspace = '%' }))\""
(box
:class "module workspaces"
:orientation "v"
(for ws in workspace
(button
:onclick "hyprctl dispatch workspace ${ws.number}"
:onclick "hyprctl eval \"hl.dispatch(hl.dsp.focus({ workspace = '${ws.number}' }))\""
(label
:show-truncated false
:class "icon-text ${ws.color}"