2020-06-23 19:27:59 +08:00
2020-08-11 23:10:29 +08:00
# Gomu (Go Music Player) [](https://goreportcard.com/report/github.com/issadarkthing/gomu) [](https://travis-ci.com/issadarkthing/gomu)
Gomu is a Terminal User Interface **TUI** music player to play mp3 files from your local machine.
2020-06-23 19:27:59 +08:00
2020-08-11 23:13:55 +08:00

2020-06-23 19:27:59 +08:00
## Features
- lightweight
2020-06-28 13:50:59 +08:00
- simple
- fast
2020-06-23 19:27:59 +08:00
- show audio files as tree
2020-08-11 23:10:29 +08:00
- queue cache
2020-06-23 20:12:40 +08:00
- vim keybindings
2020-08-11 23:10:29 +08:00
- fzf integration
2020-06-28 13:50:59 +08:00
- youtube-dl integration
- audio file management
2020-08-11 23:10:29 +08:00
- customizeable
## Dependencies
2020-08-11 23:50:24 -05:00
If you are using ubuntu, you need to install alsa and required dependencies
2020-08-11 23:10:29 +08:00
```sh
$ sudo apt install libasound2-dev go
```
Optional dependencies can be installed by this command
```sh
2020-08-22 15:17:23 +08:00
$ sudo apt install youtube-dl fzf fonts-noto
2020-08-11 23:10:29 +08:00
```
2020-06-23 19:27:59 +08:00
2020-06-24 13:00:31 +08:00
## Installation
```sh
go get -u github.com/issadarkthing/gomu
```
2020-06-28 13:50:59 +08:00
## Configuration
By default, gomu will look for audio files in `~/music` directory. If you wish to change to your desired location, edit `~/.config/gomu/config` file
2020-08-11 23:44:54 -05:00
and change `music_dir: path/to/your/musicDir` .
Sample config file:
2020-06-28 13:50:59 +08:00
```
2020-08-11 23:44:54 -05:00
color:
accent: "#008B8B "
background: none
foreground: "#FFFFFF "
now_playing_title: "#017702 "
playlist: "#008B8B "
popup: "#0A0F14 "
general:
confirm_bulk_add: true
confirm_on_exit: true
load_prev_queue: true
music_dir: ~/music
popup_timeout: 5s
volume: 100
emoji: true
2020-08-18 12:26:28 +08:00
fzf: false
2020-06-28 13:50:59 +08:00
```
2020-08-18 12:26:28 +08:00
## Fzf
Eventhough gomu can use fzf as its finder but it is recommended to use built-in
finder. This is due to the bug which may cause the application to hang up
if fzf is being used for a long period of time (not everytime). As of `v1.5.0` ,
the default built-in finder will be used instead of fzf. To override this behaviour,
edit this line `fzf: false` to change it into `true` in `~/.config/gomu/config` .
2020-08-18 22:06:22 +08:00
2020-07-03 12:31:38 +08:00
## Keybindings
2020-08-11 23:44:54 -05:00
| Key | Description |
|:----------------|-----------------------:|
| j | down |
| k | up |
| tab | change panel |
| space | toggle play/pause |
| esc | close popup |
| n | skip |
| q | quit |
| l (lowercase L) | add song to queue |
| L | add playlist to queue |
| h | close node in playlist |
| d | remove from queue |
| D | delete playlist |
| + | volume up |
| - | volume down |
| Y | download audio |
| a | create playlist |
| ? | toggle help |
2020-07-03 12:31:38 +08:00
2020-06-23 19:27:59 +08:00
## Project Background
2020-08-11 23:50:24 -05:00
I just wanted to implement my own music player with a programming language i'm currently learning ([Go ](https://golang.org/ )). Gomu might not be stable as it in constant development. For now, it can fulfill basic music player functions such as:
- add and delete songs from queue
- create playlists
- skip
- play
- pause
Seeking and more advanced stuff has not yet been implemented; feel free to contribute :)