[eww] Adds my Eww config
This commit is contained in:
23
home-manager/apps/eww/config/workspaces.yuck
Normal file
23
home-manager/apps/eww/config/workspaces.yuck
Normal file
@@ -0,0 +1,23 @@
|
||||
(defwidget workspaces [workspaces-json]
|
||||
(box
|
||||
:class "workspaces"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
(for ws in workspaces-json
|
||||
(box
|
||||
(label
|
||||
:text "${ws.name}"
|
||||
:class "workspace ${ ws.active ? "active" : "inactive" } ${ws.focused ? "focused" : "unfocused"}"
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget workspaces-primary []
|
||||
(workspaces :workspaces-json workspaces-json-dp2)
|
||||
)
|
||||
|
||||
(defwidget workspaces-secondary []
|
||||
(workspaces :workspaces-json workspaces-json-dp1)
|
||||
)
|
||||
Reference in New Issue
Block a user