eww: Only show workspaces on same monitor
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
:stacking "fg"
|
||||
:exclusive true
|
||||
(centerbox :orientation "v" :active true :class "sidebar"
|
||||
(workspaces)
|
||||
(workspaces :monitor 0)
|
||||
(middle)
|
||||
(bottom)
|
||||
))
|
||||
@ -19,7 +19,7 @@
|
||||
:stacking "fg"
|
||||
:exclusive true
|
||||
(centerbox :orientation "v" :active true :class "sidebar"
|
||||
(workspaces)
|
||||
(workspaces :monitor 1)
|
||||
(middle)
|
||||
(bottom)
|
||||
))
|
||||
@ -45,13 +45,14 @@
|
||||
(pwr)
|
||||
))
|
||||
|
||||
(defwidget workspaces []
|
||||
(defwidget workspaces [monitor]
|
||||
(box :orientation "v"
|
||||
:valign "start"
|
||||
:class "workspaces"
|
||||
:space-evenly: false
|
||||
(for workspace in workspaces_json
|
||||
(button :class 'workspace ${workspace.class}' (label :text '${workspace.id}'))
|
||||
(button :visible {workspace.monitor == monitor} :class 'workspace ${workspace.class}'
|
||||
(label :text '${workspace.id}'))
|
||||
)))
|
||||
|
||||
(defwidget speaker []
|
||||
|
||||
Reference in New Issue
Block a user