mpdheart

Crates.iompdheart
lib.rsmpdheart
version0.1.0
sourcesrc
created_at2024-03-22 07:50:09.763447
updated_at2024-03-22 07:50:09.763447
descriptionspread love around your library ♡
homepage
repositoryhttps://github.com/fawni/mpdheart
max_upload_size
id1182361
size57,237
fawn (fawni)

documentation

README

mpdheart

spread love around your library ♡

scrot

Installation

crates.io

cargo install mpdheart

Usage

to love the currently playing track:

mpdheart

to unlove:

mpdheart -u

as simple as that!

Configuration

mpdheart can be configured by editing the configuration file at ~/.config/mpdheart/config.toml or $XDG_CONFIG_HOME/mpdheart/config.toml

if the config is not found, it will attempt to write an empty config in that path, you need to at least edit the last.fm username and password to be able to un/love tracks

after the first successful run, the config will be lossly rewritten to add the last.fm session key, this means any comments will be lost. this only happens once

Example

[mpd] # optional, uses default mpd values if not specified
host = "0.0.0.0"
port = 6600

[lastfm] # after the first run, there will be an additional generated key `session_key`
username = "nya" # required
password = "awa" # required

can also be found at config/example.toml

License

Apache-2.0

Commit count: 4

cargo fmt