From a8e06cce5e2ee0aeeb8cf54c7515b6a3f3afcd66 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 10 Aug 2024 22:18:12 +0200 Subject: feat(home/beets): Add a hook to also calculate album replaygain on import --- modules/home/conf/beets/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules/home/conf/beets/default.nix') diff --git a/modules/home/conf/beets/default.nix b/modules/home/conf/beets/default.nix index ef969dc0..84f8618d 100644 --- a/modules/home/conf/beets/default.nix +++ b/modules/home/conf/beets/default.nix @@ -52,7 +52,14 @@ force = true; }; hook = { - hooks = []; + hooks = [ + { + # Also generate the replaygain for the album variant (so selecting between + # track and album becomes possible) + event = "import"; + command = "beet replaygain --album"; + } + ]; }; replaygain = { auto = true; -- cgit 1.4.1