summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2020-04-05 12:24:12 +0200
committerlassulus <lassulus@lassul.us>2020-04-05 12:24:12 +0200
commite6b18f0f178fa47ddb46952de6d103e2904d519a (patch)
tree76c327073fff68af9a34c802459a3c64bf2ebb7e
parentc7bc2cb7c28c2542e549c76195eb9a9d9cbb8e96 (diff)
l radio skip_track: set music_dir
-rw-r--r--lass/2configs/radio.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/lass/2configs/radio.nix b/lass/2configs/radio.nix
index 639caa178..c89dc91e5 100644
--- a/lass/2configs/radio.nix
+++ b/lass/2configs/radio.nix
@@ -16,7 +16,10 @@ let
'';
skip_track = pkgs.writeDashBin "skip_track" ''
+ set -eu
+
${add_random}/bin/add_random
+ music_dir=${escapeShellArg music_dir}
current_track=$(${pkgs.mpc_cli}/bin/mpc current -f %file%)
track_infos=$(${print_current}/bin/print_current)
skip_count=$(${pkgs.attr}/bin/getfattr -n user.skip_count --only-values "$current_track" || echo 0)