updated style of workspaces widget

This commit is contained in:
2025-03-09 12:38:59 +01:00
parent 49987610cf
commit e95ed69a09
2 changed files with 25 additions and 14 deletions

View File

@@ -10,15 +10,15 @@
(box
:class "workspaces"
:space-evenly false
:spacing 3
:height 20
:spacing 0
(for workspace in workspaces
(eventbox
:height 20
:width 20
:width 35
:onclick "hyprctl dispatch workspace ${workspace.id}"
:cursor "pointer"
:tooltip "${workspace.name}"
:class "workspaces--ws ${workspace.active == true ? 'workspaces--ws--active' : 'workspaces--ws--inactive'}"
:class "workspaces--ws ${workspace.active == true ? 'workspaces--ws--active' : 'workspaces--ws--inactive'} ${workspace.name == 1 ? 'first' : workspace.name == 10 ? 'last' : 'middle'}"
(label
:class "workspaces--ws--label"
:text "${workspace.windows > 0 ? workspaceIcons.full : workspaceIcons.empty}")))))
:text "${workspace.name}${workspace.windows > 0 ? '+' : ''}")))))