Merge pull request #26796 from geekpi/translating

translated
This commit is contained in:
geekpi 2022-08-15 08:27:08 +08:00 committed by GitHub
commit 8c6f3ed8c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 141 additions and 141 deletions

View File

@ -1,141 +0,0 @@
[#]: subject: "Sunamu: Display Lyrics for Currently Playing Music on the Desktop in Linux"
[#]: via: "https://itsfoss.com/sunamu-music-widget/"
[#]: author: "Sagar Sharma https://itsfoss.com/author/sagar/"
[#]: collector: "lkxed"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
Sunamu: Display Lyrics for Currently Playing Music on the Desktop in Linux
======
Being an eye candy **music widget** (or controller).
Thats the only focus of Sunamu, and it does its job pretty well.
Sunamu is an intriguing tool. It is not a music player but lets you display the music youre playing and control it.
Im not a fan of having a floating widget on my primary workspace, but Sunamus minimal yet elegant approach changed my mind!
So, I will walk you through its features, installation, configuration tweaks, and my experience with it.
### Sunamu: An Open-Source Music Controller
![playing music with sunamu][1]
As you can notice in the screenshot above, it looks like a pretty nice way to display the music being played, with the lyrics, while having the basic controls.
You can play/pause, go to the next/previous track, shuffle, and enable a loop.
Sunamu supports a wide range of audio platforms, including Spotify. It also detects music from your local collection, supporting some of the [best music players][2] available for Linux.
Additionally, it supports Windows. So, if you are streaming something through the Microsoft Edge browser on Windows, it should work well.
You can check the [compatibility list][3] on its GitHub page to learn more about the supported players and browsers.
Fortunately, you do not have to be limited by what it offers by default. It provides an easy way to tweak the config file (learn more about it on its [GitHub page][4]). This makes it possible for newbies to tweak some settings and have fun.
Ill mention a few tips about it in the later section of this article.
### Features of Sunamu
![Sunamu on empty workspace][5]
Sunamu comes with a set of promising features, and some of them are:
* Detects and display the song that is currently playing.
* Fetch color schemes from the album art and use the same color palette for better visuals.
* Customizable through its config file.
* Integrates well with Discord.
* Consumes minimal system resources.
### Install Sunamu on Linux
![Disable lyrics in sunamu][6]
It provides AppImage, deb, and rpm packages for easy installation across various Linux distributions. I used AppImage for testing, and it worked like a charm.
You can also benefit from our guide on [how to use AppImage][7] or [install deb packages][8] and [rpm packages][9], if you are new to Linux.
Interestingly, Sunamu is one of the few open-source music tools that provide direct support for ARM-based machines.
Visit their [GitHub releases page][10] to download packages or build it from the source.
**Let me show you a quick installation method** for a Debian-based distro via the terminal. Just follow the given instructions, and youll be good to go:
First, lets download the .deb package using wget command as follows:
```
wget https://github.com/NyaomiDEV/Sunamu/releases/download/v2.0.0/sunamu_2.0.0_amd64.deb
```
Once you are done downloading the package, use the given command for installation:
```
sudo dpkg -i sunamu_2.0.0_amd64.deb
```
![install sunamu in ubuntu][11]
### Tip: Tweak the Configuration file
By default, Sunamu wont fetch colors from the album art but show the lyrics for each song. And like many others, I like to avoid reading lyrics.
Config file of Sunamu is usually located at **~/.config/sunamu/config.json5**.
To open the Sunamu config file, type the given command:
```
nano ~/.config/sunamu/config.json5
```
Make changes in the electron section as given below (to enable colors and disable lyrics):
```
electron: {
type: 'electron',
widgetMode: true,
colors: true,
font: '',
theme: 'default',
showLyrics: false,
}
```
Heres what the final config file should look like:
![modify config file of sunamu][12]
### Final Thoughts
Unless you are someone who avoids electron-based apps, Sunamu is a good enough app to enhance your music experience on Linux. After, [Amberol][13], this is the second Music-related app I have liked recently.
If you try it, dont forget to share your experience in the comment section.
--------------------------------------------------------------------------------
via: https://itsfoss.com/sunamu-music-widget/
作者:[Sagar Sharma][a]
选题:[lkxed][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/sagar/
[b]: https://github.com/lkxed
[1]: https://itsfoss.com/wp-content/uploads/2022/08/playing-music-with-sunamu.png
[2]: https://itsfoss.com/best-music-players-linux/
[3]: https://github.com/NyaomiDEV/Sunamu/blob/master/COMPATIBILITY.md
[4]: https://github.com/NyaomiDEV/Sunamu/blob/master/assets/config.json5
[5]: https://itsfoss.com/wp-content/uploads/2022/08/song-with-no-lyrics-min.png
[6]: https://itsfoss.com/wp-content/uploads/2022/08/playing-music-with-sunamu-inclusing-lyrics-min1.png
[7]: https://itsfoss.com/use-appimage-linux/
[8]: https://itsfoss.com/install-deb-files-ubuntu/
[9]: https://itsfoss.com/install-rpm-files-fedora/
[10]: https://github.com/NyaomiDEV/Sunamu/releases/tag/v2.0.0
[11]: https://itsfoss.com/wp-content/uploads/2022/08/install-sunamu-in-ubuntu.png
[12]: https://itsfoss.com/wp-content/uploads/2022/08/modified-config-file-of-sunamu.png
[13]: https://itsfoss.com/amberol-music-player/

View File

@ -0,0 +1,141 @@
[#]: subject: "Sunamu: Display Lyrics for Currently Playing Music on the Desktop in Linux"
[#]: via: "https://itsfoss.com/sunamu-music-widget/"
[#]: author: "Sagar Sharma https://itsfoss.com/author/sagar/"
[#]: collector: "lkxed"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
Sunamu在 Linux 桌面上显示当前播放音乐的歌词
======
作为一个吸睛的**音乐小部件**(或控制器)。
这是 Sunamu 的唯一专注,它工作得很好。
Sunamu 是一个有趣的工具。它不是音乐播放器,但可让你显示正在播放的音乐并对其进行控制。
我不喜欢在我的主要工作区使用浮动小部件,但 Sunamu 简约而优雅的方法改变了我的想法!
因此,我将向你介绍它的功能、安装、配置调整以及我的使用经验。
### Sunamu开源音乐控制器
![playing music with sunamu][1]
正如你在上面的截图中所注意到的,它看起来是一种非常好的方式来显示正在播放的音乐,带有歌词,同时具有基本的控件。
你可以播放/暂停、转到下一首/上一首曲目、随机播放和启用循环。
Sunamu 支持多种音频平台,包括 Spotify。它还检测本地收藏中的音乐支持一些可用于 Linux 的[最佳音乐播放器][2]。
此外,它还支持 Windows。因此如果你通过 Windows 上的 Microsoft Edge 浏览器流式传输某些内容,它应该可以正常工作。
你可以查看其 GitHub 页面上的[兼容性列表][3]以了解有关支持的播放器和浏览器的更多信息。
幸运的是,你不必受限于它默认提供的功能。它提供了一种调整配置文件的简单方法(在其 [GitHub 页面][4]上了解更多信息)。这使得新手可以调整一些设置并获得乐趣。
我将在本文的后面部分提到一些关于它的提示。
### Sunamu 的特点
![Sunamu on empty workspace][5]
Sunamu 具有一些不错的特性,其中一些是:
* 检测并显示当前正在播放的歌曲。
* 从专辑封面中获取配色方案并使用相同的调色板以获得更好的视觉效果。
* 可通过配置文件进行定制。
* 与 Discord 完美集成。
* 消耗最少的系统资源。
### 在 Linux 上安装 Sunamu
![Disable lyrics in sunamu][6]
它提供 AppImage、deb 和 rpm 包,以便在各种 Linux 发行版中轻松安装。我使用 AppImage 进行测试,并且非常好用。
如果你是 Linux 新手,你还可以从我们关于[如何使用 AppImage][7] 或[安装 deb 包][8]和 [rpm 包][9]的指南中受益。
有趣的是Sunamu 是少数为基于 ARM 的机器提供直接支持的开源音乐工具之一。
访问他们的 [GitHub 发布页面][10]下载包或从源代码构建它。
**让我通过终端向你展示基于 Debian 的发行版的快速安装方法**。只需按照给定的说明进行操作,你就可以开始使用了:
首先,让我们使用 wget 命令下载 .deb 包,如下所示:
```
wget https://github.com/NyaomiDEV/Sunamu/releases/download/v2.0.0/sunamu_2.0.0_amd64.deb
```
下载完包后,使用给定的命令进行安装:
```
sudo dpkg -i sunamu_2.0.0_amd64.deb
```
![install sunamu in ubuntu][11]
### 提示:调整配置文件
默认情况下Sunamu 不会从专辑封面中获取颜色,而是显示每首歌曲的歌词。和许多其他人一样,我喜欢避免阅读歌词。
Sunamu 的配置文件通常位于**\~/.config/sunamu/config.json5**。
要打开 Sunamu 配置文件,请输入给定的命令:
```
nano ~/.config/sunamu/config.json5
```
如下所示在 electron 部分进行更改(启用颜色和禁用歌词):
```
electron: {
type: 'electron',
widgetMode: true,
colors: true,
font: '',
theme: 'default',
showLyrics: false,
}
```
这是最终配置文件的样子:
![modify config file of sunamu][12]
### 最后的想法
除非你是避免使用基于 electron 应用的人,否则 Sunamu 是一款足以增强你在 Linux 上的音乐体验的应用。继 [Amberol][13] 之后,这是我最近喜欢的第二款音乐相关应用。
如果你尝试过,请不要忘记在评论部分分享你的经验。
--------------------------------------------------------------------------------
via: https://itsfoss.com/sunamu-music-widget/
作者:[Sagar Sharma][a]
选题:[lkxed][b]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/sagar/
[b]: https://github.com/lkxed
[1]: https://itsfoss.com/wp-content/uploads/2022/08/playing-music-with-sunamu.png
[2]: https://itsfoss.com/best-music-players-linux/
[3]: https://github.com/NyaomiDEV/Sunamu/blob/master/COMPATIBILITY.md
[4]: https://github.com/NyaomiDEV/Sunamu/blob/master/assets/config.json5
[5]: https://itsfoss.com/wp-content/uploads/2022/08/song-with-no-lyrics-min.png
[6]: https://itsfoss.com/wp-content/uploads/2022/08/playing-music-with-sunamu-inclusing-lyrics-min1.png
[7]: https://itsfoss.com/use-appimage-linux/
[8]: https://itsfoss.com/install-deb-files-ubuntu/
[9]: https://itsfoss.com/install-rpm-files-fedora/
[10]: https://github.com/NyaomiDEV/Sunamu/releases/tag/v2.0.0
[11]: https://itsfoss.com/wp-content/uploads/2022/08/install-sunamu-in-ubuntu.png
[12]: https://itsfoss.com/wp-content/uploads/2022/08/modified-config-file-of-sunamu.png
[13]: https://itsfoss.com/amberol-music-player/