eww
eww copied to clipboard
[FEATURE] Variable containing screen ID window is open on
Description of the requested feature
I've got a number of duplicated widgets, that have the same config, except they reference the screen they are running on to only show information that is relevant to that screen (eg workspaces widget only showing workspaces on that screen). I find I currently need to duplicate widgets/windows to create this. Instead it would be good to be able to reference the current screen via a variable {EWW_SCREEN} which references the id passed via :monitor 0 or eww open windowname --screen 1.
Proposed configuration syntax
So this:
(deflisten workspace "./scripts/workspaces.py {EWW_SCREEN}")
(defwidget workspaces []
(literal :content workspace))
would replace this:
(deflisten workspace0 "./scripts/workspaces.py 0")
(defwidget workspaces0 []
(literal :content workspace0))
(deflisten workspace1 "./scripts/workspaces.py 1")
(defwidget workspaces1 []
(literal :content workspace1))
(deflisten workspace2 "./scripts/workspaces.py 2")
(defwidget workspaces2 []
(literal :content workspace2))
Additional context
No response
Ehm, this works for me:
(defwindow bar [screen]
....
"${screen}")