From ab2a3202b2c222c54fca856b3e802c1daf1d5342 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Fri, 3 Nov 2023 10:07:12 +0100 Subject: [PATCH] Update kink script for nushell 0.86 --- home-manager/modules/nushell/scripts/kink.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home-manager/modules/nushell/scripts/kink.nu b/home-manager/modules/nushell/scripts/kink.nu index 74fd65f..41a0c71 100644 --- a/home-manager/modules/nushell/scripts/kink.nu +++ b/home-manager/modules/nushell/scripts/kink.nu @@ -11,9 +11,9 @@ export def main [channel?: string] { }) let playlist = ($playlist.playlist | transpose | where {|x| ($x.column0 | str starts-with "File") } | get column1) mpc clear - let streamIndex = (random integer ..(($playlist | length) - 1)) + let streamIndex = (random int ..(($playlist | length) - 1)) echo $"Playing stream ($streamIndex)" let stream = ($playlist | get $streamIndex) mpc add $stream mpc play -} \ No newline at end of file +}