eww: Better workspaces
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user