mirror of
https://github.com/kmein/niveum
synced 2026-03-22 04:41:07 +01:00
feat(mpv-radio): use dmenu
This commit is contained in:
@@ -315,7 +315,7 @@ in rec {
|
|||||||
};
|
};
|
||||||
streams-tsv = pkgs.writeText "streams.tsv" (lib.concatMapStringsSep "\n" ({ desc ? "", stream, station, ... }: "${station}\t${desc}\t${stream}") streams);
|
streams-tsv = pkgs.writeText "streams.tsv" (lib.concatMapStringsSep "\n" ({ desc ? "", stream, station, ... }: "${station}\t${desc}\t${stream}") streams);
|
||||||
in pkgs.writers.writeDashBin "mpv-radio" ''
|
in pkgs.writers.writeDashBin "mpv-radio" ''
|
||||||
exec ${pkgs.mpv}/bin/mpv "$(${pkgs.fzf}/bin/fzf < ${streams-tsv} | ${pkgs.coreutils}/bin/cut -f3)"
|
exec ${pkgs.mpv}/bin/mpv --force-window=yes "$(${pkgs.dmenu}/bin/dmenu -i -l 5 < ${streams-tsv} | ${pkgs.coreutils}/bin/cut -f3)"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
rfc = wrapScript {
|
rfc = wrapScript {
|
||||||
|
|||||||
Reference in New Issue
Block a user