dotfiles/dot_config/waybar/modules/executable_workspaces.nu

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 " "
)
}
}