Coder Social home page Coder Social logo

itachilee / go-musicfox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from go-musicfox/go-musicfox

0.0 1.0 0.0 476 KB

go-musicfox是 musicfox 的重写版,为了解决某些问题,提升体验,因此采用go进行重写

Home Page: https://anhoder.github.io/post/NOO340v6g/

License: MIT License

Go 100.00%

go-musicfox's Introduction

go-musicfox

给个star✨吧

go-musicfox是 musicfox 的重写版,为了解决某些问题,提升体验,因此采用go进行重写。go初学者,顺便熟悉go,哈哈RwR

UI基于 charmbracelet/bubbletea ,做了一些定制

GitHub repo size GitHub Last Tag GitHub last commit GitHub All Releases

GitHub stars GitHub forks

最近更新(v2.1.0)

增加配置文件

配置文件路径为用户目录下的.go-musicfox/go-musicfox.ini,相关配置有:

# 启动页配置
[startup]
# 是否显示启动页
show=true
# 启动页进度条是否有回弹效果
progressOutBounce=true
# 启动页时长
loadingSeconds=2
# 启动页欢迎语,支持字母、数字、部分英文字符
# welcome=welcome!
welcome=musicfox
# 启动时自动签到
signin=true

# 进度条配置
[progress]
# 进度条已加载字符
fullChar=#
# 进度条未加载字符
emptyChar=

# 主页面配置
[main]
# 是否显示标题
showTitle=true
# 加载中提示
loadingText=[加载中...]
# 歌曲码率,128000, 320000...,视网络情况而定
songBr=999000
# 主题颜色,0-256或#233445
primaryColor=random
# 是否显示歌词
showLyric=true
# 是否显示通知信息
showNotify=true

增加通知

目前触发通知的操作有:

  • 播放歌曲
  • 自动签到成功
  • 添加歌曲到喜欢
  • 从喜欢移除
  • 标记为不喜欢
  • 登出

预览

欢迎界面 主界面1 主界面2

安装

Mac

提供两种方式安装:

使用brew安装

brew tap anhoder/go-musicfox && brew install go-musicfox

如果你之前安装过musicfox,需要使用下列命令重新链接:

brew unlink musicfox && brew link --overwrite go-musicfox

直接下载

下载Mac可执行文件,在iTerm或Terminal中打开

Linux

下载Linux可执行文件: amd64版, arm64版,在命令行中运行即可。

ArchLinux可使用AUR安装:

yay -S go-musicfox-bin

Windows

下载Windows可执行文件,在命令行中运行即可。

推荐使用Windows Terminal,UI及体验好很多

使用

$ musicfox
按键 作用 备注
h/H/LEFT
l/L/RIGHT
k/K/UP
j/J/DOWN
q/Q 退出
space 暂停/播放
[ 上一曲
] 下一曲
- 减小音量
= 加大音量
n/N/ENTER 进入选中的菜单
b/B/ESC 返回上级菜单
w/W 退出并退出登录
p 切换播放方式
P 心动模式(仅在歌单中时有效)
r/R 重新渲染UI Windows调整窗口大小后,没有事件触发,可以使用该方法手动重新渲染
, 喜欢当前播放歌曲
< 喜欢当前选中歌曲
. 当前播放歌曲移除出喜欢
> 当前选中歌曲移除出喜欢
/ 标记当前播放歌曲为不喜欢
? 标记当前选中歌曲为不喜欢

TODO

  • 我的歌单
  • 每日推荐歌曲
  • 每日推荐歌单
  • 私人FM
  • 歌词显示
  • 欢迎界面
  • 搜索
    • 按歌曲
    • 按歌手
    • 按歌词
    • 按歌单
    • 按专辑
    • 按用户
  • 排行榜
  • 精选歌单
  • 最新专辑
  • 热门歌手
  • 云盘
  • 播放方式切换
  • 喜欢/取消喜欢
  • 心动模式/智能模式
  • 音乐电台
  • 配置文件
  • 通知功能

伴生项目

  1. anhoder/bubbletea: 基于 bubbletea 进行部分定制
  2. anhoder/bubbles: 基于 bubbles 进行部分定制
  3. anhoder/netease-music: fork自 NeteaseCloudMusicApiWithGo ,在原项目的基础上去除API功能,只保留service、util作为一个独立的包,方便在其他go项目中调用

感谢

感谢以下项目及其贡献者们(不限于):

go-musicfox's People

Contributors

anhoder avatar anhoderai avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.