Crates.io | rum-player |
lib.rs | rum-player |
version | 0.1.6 |
source | src |
created_at | 2019-10-27 08:06:57.559132 |
updated_at | 2020-02-23 19:48:28.281053 |
description | TUI-based music player |
homepage | |
repository | https://github.com/l4l/rum |
max_upload_size | |
id | 176074 |
size | 130,200 |
RUM is a terminal music player, that able to play remote media from different sources (currently only Ya.Music).
Playing media is performed via mpv player, thus it need to be accessible.
cargo install rum-player
# by default installed at ~/.cargo/bin, you may add it to path:
export PATH=$PATH:~/.cargo/bin
rum-player
Currently, the tool has 3 main views: search panel, tracks listing and playlist.
Hotkeys can be set via toml config, that should be placed at $XDG_CONFIG_HOME
for Linux, or at $HOME/Library/Preferences
for macOS. All bindings must be specified at [hotkey]
table and should be in form (note quotes): "Event" = "Action"
. Hotkeys might also be specified for a particular view or context (currently only for one at a time) via subtable. If no context specified then hotkey considered as global and will be used with a lower priority. Here is a config example:
[hotkey]
"PointerUp" = "ArrowUp"
"PointerDown" = "ArrowDown"
"NextTrack" = "+"
"PrevTrack" = "-"
"Forward5" = "Ctrl++"
"Backward5" = "Ctrl+-"
[hotkey.search]
"PointerUp" = "ArrowDown"
"PointerDown" = "ArrowUp"
[hotkey.tracklist]
"Enter" = "Alt+0"
Default hotkeys are the following:
For development you need a nightly compiler, since dependency requires it: rustup default toolchain nightly
. Afterwards you may build sources via cargo build
and start hacking. Please also use rustfmt & clippy at development process: rustup component add rustfmt clippy
.