summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2020-04-15 17:20:28 +0200
committerlassulus <lassulus@lassul.us>2020-04-15 17:20:28 +0200
commit993a8de856df192a172c25b5e9ededc3ece3e80d (patch)
tree3e832f18c45bd66bfd280221f6462546ad6b1a0d /lass/2configs
parentfd178641b03886b1b732330f60226903011ccdc4 (diff)
l radio: listen to more experimental music
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/radio.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lass/2configs/radio.nix b/lass/2configs/radio.nix
index 74b15a0ab..e8ce66d3e 100644
--- a/lass/2configs/radio.nix
+++ b/lass/2configs/radio.nix
@@ -12,7 +12,7 @@ let
music_dir = "/home/radio/music";
add_random = pkgs.writeDashBin "add_random" ''
- ${pkgs.mpc_cli}/bin/mpc add "$(${pkgs.mpc_cli}/bin/mpc ls the_playlist/music | grep '\.ogg$' | shuf -n1)"
+ ${pkgs.mpc_cli}/bin/mpc add "$(${pkgs.findutils}/bin/find "${music_dir}/the_playlist" | grep '\.ogg$' | shuf -n1 | sed 's,${music_dir}/,,')"
'';
skip_track = pkgs.writeDashBin "skip_track" ''