eww: Better workspaces

This commit is contained in:
2024-05-15 23:22:39 +02:00
parent f4b52e2836
commit 6540833edc
3 changed files with 39 additions and 18 deletions

View File

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