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

11 lines
236 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 |
get id |
each {|id| {id: $id class: (if ($id == $active) {"active"} else {""}) }} |
to json