#music-player #toml #audio-playback #playback #minimal #env-var

bin+lib quing

一个基于 toml 的(希望是)最小化音乐播放器

62 个稳定版本

2.2.1 2024 年 8 月 5 日
2.1.0 2023 年 12 月 8 日
2.0.6 2023 年 11 月 17 日
1.17.0 2023 年 10 月 3 日
1.11.1 2023 年 7 月 30 日

#113 in 音频

Download history 46/week @ 2024-07-29 224/week @ 2024-08-05

每月 270 次下载

自定义许可证

61KB
1.5K SLoC

quing,一个基于 toml 的(希望是)最小化音乐播放器

用法:quing [-flags...] [playlist.toml...]

time = -1 # an optional setting for repeating a playlist n times. if the number is below zero, it'll repeat infinitely
vary = false # set that a playlist cannot be shuffled. Default is true

[[song]]
file = "" # file path pointing towards a file, which contains audio data.
# supported features:
#  environment variables: ${NAME}
#  NOTE: redcursive variables do also work e.g.: $${NAME} => ${VALUE_OF_NAME} => {VALUE_OF_VALUE_OF_NAME}
#  ~, at the start of the path, as a shortcut, for $HOME.

time = -1 # similar to playlist-level time, but for a single song.

标志

所有标志必须在播放列表文件之前传递,并以连字符('-')开头。

'n' = "to not shuffle every playlist"
'f' = "to merge all tracks, from the playlist files, into one."
'v' = "to output some general package information."
'p' = "repeat the composed file-playlist for ever."
't' = "repeat the inputted file, inside of the file-playlist, infinitely."

控件

'C-l' = "skip one playlist forwards"
'C-j' = "skip one playlist backwards"
'C-k' = "exit the program when in active playback"
'C-h' = "reset back to the first playlist"
'  l' = "skip one track forwards"
'  j' = "skip one track backwards"
'  k' = "toggle the playback"
'  h' = "reset back to the first track"
'S-l' = "increase the volume"
'S-j' = "decrease the volume"
'S-k' = "toggle the volume"
'S-h' = "reset the volume"

由于更新的控制代码的性质,程序在完全关闭之前通常需要第二次输入。

依赖项

~6–36MB
~581K SLoC