mirror of
https://github.com/hydroxycarbamide/dotfiles.git
synced 2025-05-04 20:09:08 -04:00
15 lines
267 B
Text
15 lines
267 B
Text
#!/usr/bin/nu
|
|
|
|
def main [output_name] {
|
|
loop {
|
|
sleep 1sec
|
|
|
|
print (
|
|
niri msg -j workspaces
|
|
| from json
|
|
| where output == $output_name
|
|
| each {|ws| if $ws.is_active { '' } else { '' } }
|
|
| str join " "
|
|
)
|
|
}
|
|
}
|