Crates.io | am |
lib.rs | am |
version | 0.5.4 |
source | src |
created_at | 2019-05-23 05:12:02.997197 |
updated_at | 2024-09-12 07:40:05.16795 |
description | A beautiful and feature-packed Apple Music CLI |
homepage | https://github.com/ryanccn/am |
repository | https://github.com/ryanccn/am.git |
max_upload_size | |
id | 136280 |
size | 273,185 |
am
A beautiful and feature-packed Apple Music CLI!
Written in Rust.
This GitHub repository contains a flake. Add github:ryanccn/am
to your flake inputs:
{
inputs = {
# ...other inputs
am = {
url = "github:ryanccn/am";
inputs.nixpkgs.follows = "nixpkgs";
}
}
}
Then, use the overlay from overlays.default
and add am
to your packages. Alternatively, you can use packages.{default,am}
directly.
You can install am
through cargo
from crates.io.
$ cargo install am
Download the aarch64
(Apple Silicon) or the x86_64
(Intel) version of the binary.
Dequarantine them with xattr -d com.apple.quarantine <path>
and make them executable with chmod +x <path>
.
am now
am next
am discord
Through a macOS launch agent, the Discord rich presence can be made to run in the background as long as you are logged in.
You can install the Discord presence as a launch agent by running am discord install
. Note that this depends on the executable/symlink staying in the same place; if it moves to a different place, run the command again.
The am
process running in the launch agent will log to ~/Library/Logs/am-discord-rich-presence.log
.
You can uninstall the launch agent with am discord uninstall
.
This repository's flake also provides a Home Manager module at homeManagerModules.default
. This module exposes a service am-discord-rich-presence
that you can enable.
{
services.am-discord-rich-presence = {
enable = true;
# optional
# logFile = "${config.xdg.cacheHome}/am-discord-rich-presence.log";
}
}
am
package on crates.ioGPLv3