Add eww helper scripts
This commit is contained in:
10
tree/.local/bin/eww-workspaces
Executable file
10
tree/.local/bin/eww-workspaces
Executable 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
|
||||
Reference in New Issue
Block a user