eww: Update workspaces script to new nushell syntax
This commit is contained in:
parent
66389a861d
commit
9d87464447
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ def is-i3 [] {
|
||||||
}
|
}
|
||||||
|
|
||||||
export def ipc-cmd [--raw, ...parameters: string] {
|
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 {
|
if $raw {
|
||||||
$result
|
$result
|
||||||
} else {
|
} else {
|
||||||
|
@ -48,4 +48,4 @@ def main [] {
|
||||||
print (workspaces | to json -r)
|
print (workspaces | to json -r)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue