mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat(scripts): mpv-radio
This commit is contained in:
@@ -302,6 +302,16 @@ in rec {
|
||||
|
||||
unicodmenu = pkgs.callPackage ./unicodmenu.nix { };
|
||||
|
||||
mpv-radio =
|
||||
let
|
||||
streams = import <niveum/lib/streams.nix> {
|
||||
di-fm-key = lib.strings.fileContents <secrets/di.fm/key>;
|
||||
};
|
||||
streams-tsv = pkgs.writeText "streams.tsv" (lib.concatMapStringsSep "\n" ({ desc ? "", stream, station, ... }: "${station}\t${desc}\t${stream}") streams);
|
||||
in pkgs.writers.writeDashBin "mpv-radio" ''
|
||||
exec ${pkgs.mpv}/bin/mpv "$(${pkgs.fzf}/bin/fzf < ${streams-tsv} | ${pkgs.coreutils}/bin/cut -f3)"
|
||||
'';
|
||||
|
||||
rfc = wrapScript {
|
||||
script = ./rfc.sh;
|
||||
name = "rfc";
|
||||
|
||||
Reference in New Issue
Block a user