[Others] 【插件】音乐控制及歌词显示 dock 插件【2022/03/10】
Tofloor
poster avatar
septemberhx
deepin
2021-05-17 02:52
Author

效果见下图,分别为在 panel 及 dock 上的效果。

 

------ 2022/03/10 v0.3

跟随系统黑白主题色

-------

 

主要功能:

 

1. dock 上控制音乐播放:上一首/播放/暂停/下一首

2. dock 上显示歌词

3. 点击图标显示播放器窗口

 

这不是一个独立程序,需要后台挂在支持 mpris2 的播放器(比如网易云,以及系统自带播放器)

另:QQ音乐Linux版、各种wine版本音乐播放器没有实现 mpris2 ,故不支持;安装 d-feet 后,在 session bus 里搜索 mpris2 即可明确播放器是否支持 mpris2

下载地址:SeptemberHX/dde-mpris2-plugin: mpris2 player plugin for deepin v20 (github.com)

进入上方链接,右侧有个 release,下载最新即可。

解压后,将 .so 文件放到 ~/.local/lib/dde-top-panel/plugins 或者 ~/.local/lib/dde-dock/plugins,重启 panel 或 dock 即可

 

 

Screenshot with dde-dock

Reply Favorite View the author
All Replies
1 / 2
To page
lfxyl
deepin
2021-05-17 06:43
#1

支持什么播放器呀,网易云好像也不行

 

Reply View the author
septemberhx
deepin
2021-05-17 17:02
#2
lfxyl

支持什么播放器呀,网易云好像也不行

 

测试过网易云音乐和系统自带音乐播放器,都可以。需要先打开音乐播放器才能工作

Reply View the author
柚子
deepin
2021-05-19 19:42
#3

支持spotify吗?

Reply View the author
septemberhx
deepin
2021-05-19 21:04
#4
柚子

支持spotify吗?

看 spotify 支不支持 mpris2,最简单的方法就是 spotify 放着音乐,锁屏。看登录界面有没有音乐控制

Reply View the author
柚子
deepin
2021-05-20 17:57
#5
septemberhx

看 spotify 支不支持 mpris2,最简单的方法就是 spotify 放着音乐,锁屏。看登录界面有没有音乐控制

spotify支持mpris2的,但是歌词也能用吗?

Reply View the author
septemberhx
deepin
2021-05-20 21:10
#6
柚子

spotify支持mpris2的,但是歌词也能用吗?

你可以试试看,能不能用歌词也还是取决于 mpris2,mpris2里的歌曲信息准确,那么就能显示正确的歌词

Reply View the author
柚子
deepin
2021-05-21 19:26
#7
septemberhx

你可以试试看,能不能用歌词也还是取决于 mpris2,mpris2里的歌曲信息准确,那么就能显示正确的歌词

我可以把歌词部分代码移到我的桌面小部件里面吗

Reply View the author
septemberhx
deepin
2021-05-21 20:06
#8
柚子

我可以把歌词部分代码移到我的桌面小部件里面吗

可以。但是小心点,用了QQ的API,随时可能消失。

Reply View the author
柚子
deepin
2021-05-22 22:45
#9
septemberhx

可以。但是小心点,用了QQ的API,随时可能消失。

感谢大佬

Reply View the author
158******20
deepin
2021-06-08 22:38
#10

文字没对其 高分屏 缩放1.25

Reply View the author
septemberhx
deepin
2021-06-09 18:26
#11
158******20

文字没对其 高分屏 缩放1.25

默认上下有间距,应该字缩放后就这么大。但是看起来垂直方向没有居中。

 

换一首歌,看一下能不能居中

Reply View the author
158******20
deepin
2021-06-09 18:40
#12
septemberhx

默认上下有间距,应该字缩放后就这么大。但是看起来垂直方向没有居中。

 

换一首歌,看一下能不能居中

不管怎么放,都无法居中 。
没开启缩放,也这样,没有对其。

会不会时字体问题

Reply View the author
158******20
deepin
2021-06-09 18:41
#13
septemberhx

默认上下有间距,应该字缩放后就这么大。但是看起来垂直方向没有居中。

 

换一首歌,看一下能不能居中

果然是字体问题,用鸿蒙字体就 对不齐。

Reply View the author
素还真丶
deepin
2021-07-03 00:12
#14

新人不懂就问 新版怎么没有看到.so文件呢。

Reply View the author
septemberhx
deepin
2021-07-03 02:59
#15
素还真丶

新人不懂就问 新版怎么没有看到.so文件呢。

进github后,右边有个 release,下载里面的zip压缩包解压就是

Reply View the author
素还真丶
deepin
2021-07-03 04:04
#16
septemberhx

进github后,右边有个 release,下载里面的zip压缩包解压就是

万分感谢 ,是我不够仔细,原来我下的是源码包。。

Reply View the author
素还真丶
deepin
2021-07-03 05:34
#17

好像不能用了 系统是20 5.10.29   

Reply View the author
septemberhx
deepin
2021-07-03 17:37
#18
素还真丶

好像不能用了 系统是20 5.10.29   

点一下 上一首/下一首 应该就好了,发现初始化的时候有 bug,在修了

Reply View the author
septemberhx
deepin
2021-07-03 18:50
#19
素还真丶

好像不能用了 系统是20 5.10.29   

修复了一下,你试试看:

https://wwx.lanzoui.com/b01chhosf
密码:2czw

Reply View the author
xinghe
deepin
2021-08-08 07:02
#20

您好,我一直找不到~/.local/lib/dde-top-panel/plugins这个路径 请问能帮帮我吗?

Reply View the author
1 / 2
To page