No description
Stephen Seo
bf62fde38d
Add some "error handling" for authentication fail, album art fetch fail, or getting status fail (if either of the three fails, then mpd_info_screen will not try to authenticate/fetch-info again). Some refactoring like using a struct instead of a tuple. Improve drawing of text by caching the picked font size that is only changed when the song changes or when the window dimensions change. |
||
---|---|---|
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md |
mpd info screen
A Rust program that displays info about the currently running MPD server.
The window shows albumart (embedded in the audio file), a "time-remaining" counter, and the filename currently being played
Usage
mpd_info_screen 0.1.0
USAGE:
mpd_info_screen [OPTIONS] <host> [port]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-p <password>
ARGS:
<host>
<port> [default: 6600]
Note that Escape key and Q key pressed when the window is focused closes the program.
Issues / TODO
- UTF-8 Non-ascii font support (macroquad is being used to display a window, text, and album art, but doesn't seem to have support for ".ttc" fonts that could render CJK text)
- Support for album art not embedded but in the same directory
Legal stuff
Uses dependency macroquad which is licensed under either MIT or Apache-2.0 licenses.
Uses dependency image which is licensed under MIT license.
Uses dependency structopt which is licensed under Apache-2.0 or MIT licenses.