eww: Fix workspaces monitor filter

This commit is contained in:
2024-05-16 09:56:50 +02:00
parent 6540833edc
commit cb7c1dc23c
3 changed files with 16 additions and 16 deletions

View File

@ -5,6 +5,6 @@ let active = (hyprctl activeworkspace -j | from json | get id)
hyprctl workspaces -j |
from json |
sort-by id |
each {|w| {$w.id: {monitor: $w.monitorID class: (if ($w.id == $active) {"active"} else {""}) }}} |
each {|w| {$w.id: {monitor: $w.monitorID active: ($w.id == $active) }}} |
reduce {|a, b| $a | merge $b } |
to json