Add eww helper scripts

This commit is contained in:
2023-12-27 19:07:17 +01:00
parent b6531abf57
commit 093b7afe94
2 changed files with 51 additions and 0 deletions

10
tree/.local/bin/eww-workspaces Executable file
View File

@ -0,0 +1,10 @@
#!/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