add am.sh for apple music

This commit is contained in:
willemml 2023-01-28 11:58:32 -08:00
parent a35b13e5d8
commit f51d095540
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD
2 changed files with 13 additions and 1 deletions

View file

@ -22,6 +22,16 @@ in {
pinentry-program "${pkgs.pinentry_mac}/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac"
'';
home.file.".config/zsh/am.sh" = mkIf stdenv.isDarwin {
executable = true;
source = let rev = "27353ec55abac8b5d73b8a061fb87f305c663adb";
in builtins.fetchurl {
url =
"https://raw.githubusercontent.com/mcthomas/Apple-Music-CLI-Player/${rev}/src/am.sh";
sha256 = "sha256-78zRpNg7/OR7p8dpsJt6Xc4j0Y+8zSUtm/PT94nf03M=";
};
};
home.keyboard = {
layout = "us";
variant = "colemak";

View file

@ -133,10 +133,12 @@
cd = "z";
l = "ls -1";
web = "open -a Safari";
email = "open -a Mail";
o = "open -a";
am = lib.mkIf pkgs.stdenv.isDarwin "zsh ~/.config/zsh/am.sh";
};
};
home-manager.enable = true;
};
}