dotfiles/home/.config/eww/modules/workspaces.yuck

22 lines
638 B
Plaintext
Raw Normal View History

2022-10-29 18:25:42 +00:00
; (defwidget sep []
; (label :class "separ module" :text "|"))
; Consider making the window name clickable, opening up a full window that's showing
; the selected window details (class, unformatted name, and perhaps even more, like
; xwayland status, ...)
(defwidget workspaces_module []
(box
:class "module workspaces"
(for workspace in workspaces
(eventbox
:class {workspace.active ? 'focused' : workspace.windows > 0 ? 'active' : 'inactive'}
:onclick `scripts/workspaces --switch ${workspace.id}`
(label
:class "value icon"
2022-10-29 18:25:42 +00:00
:text {workspace.format_name}))
)
))