diff --git a/.gitignore b/.gitignore index 3835d0d..c3e89d6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ goMP +gomp *.jpg diff --git a/README.md b/README.md index c715fec..972eea4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# goMP +# gomp ![](https://img.shields.io/badge/status-alpha-red) @@ -19,4 +19,4 @@ https://user-images.githubusercontent.com/51816057/144759799-b9eecf9e-93ad-43a7- # Documentation -The Documentation is hosted [here](https://aditya-K2.github.io/goMP/) +The Documentation is hosted [here](https://aditya-K2.github.io/gomp/) diff --git a/app.go b/app.go index 65c0ec5..13c2383 100644 --- a/app.go +++ b/app.go @@ -30,6 +30,11 @@ func newApplication(r *Renderer) *Application { return imagePreviewer.GetInnerRect() }) + expandedView.SetBackgroundColor(tcell.ColorDefault) + Navbar.SetBackgroundColor(tcell.ColorDefault) + searchBar.SetBackgroundColor(tcell.ColorDefault) + imagePreviewer.SetBackgroundColor(tcell.ColorDefault) + searchBar.SetTitle("Search").SetTitleAlign(tview.AlignLeft) searchBar.SetAutocompleteBackgroundColor(tcell.GetColor("#15191a")) searchBar.SetAutocompleteSelectBackgroundColor(tcell.GetColor("#e5e5e5")) diff --git a/cache/cache.go b/cache/cache.go index 4f10ee2..882e6b0 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -6,7 +6,7 @@ import ( "os" "strings" - "github.com/aditya-K2/goMP/utils" + "github.com/aditya-K2/gomp/utils" ) var ( diff --git a/client.go b/client.go index 00243cd..da8c3fe 100644 --- a/client.go +++ b/client.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/aditya-K2/goMP/utils" + "github.com/aditya-K2/gomp/utils" "github.com/aditya-K2/tview" ) diff --git a/config/config.go b/config/config.go index c5dc1c0..5838d0f 100644 --- a/config/config.go +++ b/config/config.go @@ -6,7 +6,7 @@ import ( "os" "strings" - "github.com/aditya-K2/goMP/utils" + "github.com/aditya-K2/gomp/utils" "github.com/spf13/viper" ) diff --git a/docs/index.md b/docs/index.md index 62835b7..1d9f43e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -14,19 +14,19 @@ - Music Player Daemon must be setup and Running - Go Should Be Installed ( For Building ) -- After Reading this it is highly recommended to read the [sample_config](https://github.com/aditya-K2/goMP/blob/master/sample_config.yml) +- After Reading this it is highly recommended to read the [sample_config](https://github.com/aditya-K2/gomp/blob/master/sample_config.yml) # Installing / Building ```bash -git clone https://github.com/aditya-K2/goMP && -cd goMP && +git clone https://github.com/aditya-K2/gomp && +cd gomp && go build ``` # Configuration -Configuration of goMP is done through a `config.yml` file in `$HOME/config/goMP/` +Configuration of gomp is done through a `config.yml` file in `$HOME/config/gomp/` It is essential to have some config options defined in order to have a smooth experience. @@ -41,8 +41,8 @@ MPD_PORT : "6600" ## Music Directory The Most Essential config option is `MUSIC_DIRECTORY` It is the path to your Music Folder that you have provided to mpd -in the `mpd.conf` file. If you do not provide the path to the `MUSIC_DIRECTORY` then goMP parses the mpd.conf file for -the `music_directory` option ( It is to be noted that goMP assumes that your mpd.conf file is at +in the `mpd.conf` file. If you do not provide the path to the `MUSIC_DIRECTORY` then gomp parses the mpd.conf file for +the `music_directory` option ( It is to be noted that gomp assumes that your mpd.conf file is at `$HOME/.config/mpd/mpd.conf` ```yml @@ -53,7 +53,7 @@ The reason why you need to setup `MUSIC_DIRECTORY` manually because the paths to ## Default Image Path -This is the Fallback Image that will be rendered if goMP doesn't find the embedded cover art or LastFM Cover Art. +This is the Fallback Image that will be rendered if gomp doesn't find the embedded cover art or LastFM Cover Art. ```yml DEFAULT_IMAGE_PATH : "/path/to/default/image" @@ -67,7 +67,7 @@ The Default Position of the Image without any configuration assumes that you hav be rendered at different places in different terminals, Also the TUIs calculates positions with the according to rows and columns and the image is rendered at pixel positions so the exact position can't be defined [ the app tries its best by calculating the font width and then predicting the position but it is best that you define some extra padding and your own image width ratio -in config.yml. Please Read more about it in the [sample_config](https://github.com/aditya-K2/goMP/blob/master/sample_config.yml) +in config.yml. Please Read more about it in the [sample_config](https://github.com/aditya-K2/gomp/blob/master/sample_config.yml) for e.g @@ -81,7 +81,7 @@ IMAGE_WIDTH_EXTRA_Y : -2.6 ``` ![Cover Art Position](./assets/default.png) -Let's say upon opening goMP for the first time and your image is rendered this way. +Let's say upon opening gomp for the first time and your image is rendered this way. Here the `Y` Position is too low hence we have to decrease the `ADDITIONAL_PADDING_Y` so that image will be rendered in a better position so we decrement the `ADDITIONAL_PADDING_Y` by `9` @@ -110,7 +110,7 @@ and the image appears like this: Which looks perfect. 🎉 -Read More about Additional Padding and Image Width in the [sample_config](https://github.com/aditya-K2/goMP/blob/master/sample_config.yml) +Read More about Additional Padding and Image Width in the [sample_config](https://github.com/aditya-K2/gomp/blob/master/sample_config.yml) Please change the configuration according to your needs. @@ -122,7 +122,7 @@ By Default Images are cached to avoid re-extracting images and making redundant CACHE_DIR : "/path/to/the/cache/Directory/" ``` -Read More about Caching in the [sample_config](https://github.com/aditya-K2/goMP/blob/master/sample_config.yml) +Read More about Caching in the [sample_config](https://github.com/aditya-K2/gomp/blob/master/sample_config.yml) ## Key Mappings diff --git a/go.mod b/go.mod index f804ab1..220e090 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/aditya-K2/goMP +module github.com/aditya-K2/gomp go 1.16 diff --git a/main.go b/main.go index dcd8aa4..0dc677e 100644 --- a/main.go +++ b/main.go @@ -4,11 +4,11 @@ import ( "strconv" "time" - "github.com/aditya-K2/goMP/utils" + "github.com/aditya-K2/gomp/utils" "github.com/aditya-K2/fuzzy" - "github.com/aditya-K2/goMP/cache" - "github.com/aditya-K2/goMP/config" + "github.com/aditya-K2/gomp/cache" + "github.com/aditya-K2/gomp/config" "github.com/fhs/gompd/mpd" "github.com/gdamore/tcell/v2" "github.com/spf13/viper" diff --git a/notification.go b/notification.go index 3013627..584434a 100644 --- a/notification.go +++ b/notification.go @@ -3,7 +3,7 @@ package main import ( "time" - "github.com/aditya-K2/goMP/utils" + "github.com/aditya-K2/gomp/utils" "github.com/aditya-K2/tview" "github.com/gdamore/tcell/v2" diff --git a/progressBar.go b/progressBar.go index 46b0e0e..677a9ac 100644 --- a/progressBar.go +++ b/progressBar.go @@ -4,7 +4,7 @@ import ( "fmt" "strconv" - "github.com/aditya-K2/goMP/utils" + "github.com/aditya-K2/gomp/utils" "github.com/aditya-K2/tview" "github.com/gdamore/tcell/v2" @@ -34,6 +34,7 @@ func newProgressBar(r *Renderer) *progressBar { SetCell(1, 0, tview.NewTableCell("")). SetCell(2, 0, tview.NewTableCell("")) + a.SetBackgroundColor(tcell.ColorDefault) a.SetBorder(true) a.SetDrawFunc(func(s tcell.Screen, x, y, width, height int) (int, int, int, int) { diff --git a/render.go b/render.go index 6008b05..3d28ee1 100644 --- a/render.go +++ b/render.go @@ -4,8 +4,8 @@ import ( "image" "os" - "github.com/aditya-K2/goMP/cache" - "github.com/aditya-K2/goMP/utils" + "github.com/aditya-K2/gomp/cache" + "github.com/aditya-K2/gomp/utils" "github.com/nfnt/resize" "github.com/spf13/viper" "gitlab.com/diamondburned/ueberzug-go"