EdenQwQ/home/programs/utils/music.nix
2025-03-01 22:35:08 +08:00

140 lines
4.3 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
config,
pkgs,
...
}:
{
home.packages = with pkgs; [
go-musicfox
fum
];
xdg.configFile."go-musicfox/go-musicfox.ini".text =
# ini
''
#
[startup]
#
show=true
#
progressOutBounce=true
#
loadingSeconds=2
#
welcome=musicfox
# ()
signIn=false
#
checkUpdate=false
#
[progress]
#
fullChar=""
fullCharWhenFirst=""
fullCharWhenLast=""
lastFullChar=""
#
emptyChar="."
emptyCharWhenFirst="."
emptyCharWhenLast="."
firstEmptyChar="."
#
[main]
#
showTitle=true
#
loadingText=[...]
# standard,higher,exhigh,lossless,hires
songLevel=higher
#
#
# primaryColor=random
#
primaryColor="#${config.lib.stylix.colors.base07}"
# windows,linux
notifyIcon="logo.png"
#
showLyric=true
# ms
lyricOffset=0
#
showLyricTrans=false
#
showNotify=true
# pprof, --pprof
pprofPort=9876
# altScreen
altScreen=true
#
enableMouseEvent=true
# 使
doubleColumn=true
# $${MUSICFOX_ROOT}/download
downloadDir=
#
downloadFileNameTpl={{.SongName}}-{{.ArtistName}}.{{.SongType}}
# $${MUSICFOX_ROOT}/cache
# !!!!!! 使mpd,mpd"music_directory"cacheDir
cacheDir=
# MB0使-10
cacheLimit=0
# 1000
showAllSongsOfPlaylist=false
[global_hotkey]
#
# = (https://github.com/go-musicfox/go-musicfox/blob/master/internal/ui/event_handler.go#L15)
# ctrl+shift+space=toggle
[autoplay]
#
autoPlay=false
# dailyReco, like, name:, no退offsetdailyReco
autoPlayList=dailyReco
# 0-10
offset=0
# listLoop, order, singleLoop, randomoffset, intelligent, last退last
playMode=last
[player]
# beep / mpd(mpd) / osx(Mac)
# Mac使osx使beep
#engine=beep
# beep使mp3go-mp3, minimp3 (minimp3CPUgo-mp3)
beepMp3Decoder=go-mp3
# mpd
mpdBin=/usr/local/bin/mpd
# !!!!!! pid_file退killmpd
mpdConfigFile=/Users/anhoder/.mpd/mpd.conf
# tcp unix
mpdNetwork=unix
# tcpip+port(:127.0.0.1:1234)unixsocket
mpdAddr=
[unm]
# UNM
switch=true
# UNM: kuwo,kugou,migu,qq
sources=kuwo,kugou,migu,qq
# UNM 0-3
searchLimit=0
#
enableLocalVip=true
#
unlockSoundEffects=true
# QQcookie
qqCookieFile=
'';
programs.cava = {
enable = true;
};
stylix.targets.cava = {
enable = true;
rainbow.enable = true;
};
xdg.configFile."fum/config.jsonc".source = ./fum.json;
}