-
For example for a workspace widget. Each time the focused workspace changes, the unfocused icon fades out and the new one fades in. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You could do this with some quite complicated revealer setup. ; This might not be correct code, I'm writing this from memory, haven't touched eww in a while :)
; waiting for that localstate pr @elkowar :D :D
(defwidget worspaces []
(workspace :icon "1" :active workspaces_script.first.active)
(workspace :icon "2" :active workspaces_script.second.active)
...
...)
(defwideget workspace [icon, active]
... revealer ... ) Might do this myself actually at some point. I believe it's possible. Do take a look at https://github.com/druskus20/eugh for examples of revealers |
Beta Was this translation helpful? Give feedback.
You could do this with some quite complicated revealer setup.
I recommend defining a generic workspace widget. You'd have 9 (one per workspace) of those.
Each one contains a revealer that reveals the contents if that particular workspace is focused.
Then you would have a workspaces script that outputs json with the information regarding each workspace