Files
df/tree/.local/bin/eww-workspaces

10 lines
251 B
Plaintext
Executable File

#!/usr/bin/env nu
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 {""}) }} |
to json