eww: Update workspaces script to new nushell syntax

This commit is contained in:
Erwin Boskma 2024-03-11 17:53:12 +01:00
parent 66389a861d
commit 9d87464447
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -21,7 +21,7 @@ def is-i3 [] {
}
export def ipc-cmd [--raw, ...parameters: string] {
let result = (run-external --redirect-stdout (ipcCmd) $parameters)
let result = (run-external --redirect-stdout (ipcCmd) ...$parameters)
if $raw {
$result
} else {
@ -48,4 +48,4 @@ def main [] {
print (workspaces | to json -r)
}
}
}
}