{"id":13760683,"url":"https://github.com/solidiquis/alacpretty","last_synced_at":"2025-06-30T02:33:22.878Z","repository":{"id":55383778,"uuid":"293706784","full_name":"solidiquis/alacpretty","owner":"solidiquis","description":"Alacritty is a cross-platform GPU-accelerated terminal emulator. Make it pretty without having to edit your yaml file 🌈","archived":false,"fork":false,"pushed_at":"2021-12-27T09:51:55.000Z","size":18808,"stargazers_count":146,"open_issues_count":5,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-11T05:35:10.255Z","etag":null,"topics":["alacritty","alacritty-colorscheme","alacritty-config","alacritty-theme"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/solidiquis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-08T05:07:38.000Z","updated_at":"2025-01-29T21:47:36.000Z","dependencies_parsed_at":"2022-08-14T23:10:11.474Z","dependency_job_id":null,"html_url":"https://github.com/solidiquis/alacpretty","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/solidiquis/alacpretty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Falacpretty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Falacpretty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Falacpretty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Falacpretty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solidiquis","download_url":"https://codeload.github.com/solidiquis/alacpretty/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Falacpretty/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262698878,"owners_count":23350197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alacritty","alacritty-colorscheme","alacritty-config","alacritty-theme"],"created_at":"2024-08-03T13:01:16.574Z","updated_at":"2025-06-30T02:33:22.847Z","avatar_url":"https://github.com/solidiquis.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Alacpretty ‎️‍🌈\n\n\u003ca href=\"https://github.com/alacritty/alacritty\"\u003eAlacritty\u003c/a\u003e is a GPU-enhanced terminal emulator; Alacpretty is a Go program that leverages \u003ca href=\"https://github.com/gizak/termui\"\u003etermui\u003c/a\u003e to provide Alacritty users the ability to edit their Alacritty configurations via a terminal user-interface.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/solidiquis/alacpretty/blob/master/assets/alacpretty.gif\"\u003e\n\u003c/p\u003e \n\n## How it works\n\nAlacpretty components are ready to plug into your Alacritty configurations. Assuming your `alacritty.yml` file is in the appropriate location as specified in the \u003ca href=\"https://github.com/alacritty/alacritty\"\u003eAlacritty documentation\u003c/a\u003e, all you'll need to do is grab the components you need from `internal/ui`, and drop them into \u003ca href=\"https://github.com/solidiquis/alacpretty/blob/master/internal/ui/widgets_controller.go\"\u003eWidgetsController\u003c/a\u003e like it is done in `cmd/alacpretty/main.go`.\n\n```go\npackage main\n\nimport (\n\taui \"github.com/solidiquis/alacpretty/internal/ui\"\n\t\"github.com/solidiquis/alacpretty/internal/yamlconf\"\n)\n\nfunc main() {\n  // Reads the contents of alacritty.yml to a string\n  content := yamlconf.ReadFileToString()\n  \n  // Set the position of each widget, and arrange in however\n  // many rows you need.\n  row1 := []aui.UIWidget{\n    aui.NewThemeShuffler(0, 0, 25, 10),\n    aui.NewFontsizeAdjuster(26, 0, 51, 10),\n  }\n  row2 := []aui.UIWidget{\n    aui.NewOpacityGauge(0, 11, 51, 14),\n  }\n\n  // Controller handles rendering and navigating between widgets.\n  aui.WidgetsController(\n    \u0026content,\n    row1,\n    row2,\n  )\n}\n```\n\nHere is how you navigate the UI:\n- `h`, `j`, `k`, `l` and `←`, `↓`, `↑` , `→` are equivalent and are used to navigate inside the widget or change its appearance.\n- `H`, `J`, `K`, `L` are used to navigate across widgets, as only one can be focused on at a time.\n\nThey way in which the focus shifts between widgets is dependent upon the way you arrange your widgets in rows.\n\n## How to use\n\nThere are a couple ways in which you can use Alacpretty: The simplest way would be to have Go installed, clone this repo, and run `go run cmd/alacpretty/main.go` - or you can clone this repo, compile the code into binary, and stick it somewhere in your path.\n\n## Stable widgets\n\n1. \u003ca href=\"https://github.com/solidiquis/alacpretty/blob/master/internal/ui/theme_shuffler.go\"\u003eThemeShuffler\u003c/a\u003e\n2. \u003ca href=\"https://github.com/solidiquis/alacpretty/blob/master/internal/ui/opacity_gauge.go\"\u003eOpacityGauge\u003c/a\u003e\n3. \u003ca href=\"https://github.com/solidiquis/alacpretty/blob/master/internal/ui/fontsize_adjuster.go\"\u003eFontsizeAdjuster\u003c/a\u003e\n\n## Work-in-progress widgets\n\n1. FontShuffler\n2. FontSearchbar\n3. ThemeSearchbar\n4. HelpBox\n5. YamlDisplay\n\n## Licence\n\n\u003ca href=\"https://raw.githubusercontent.com/solidiquis/alacpretty/master/LICENCE\"\u003eMIT\u003c/a\u003e\n\n## Note from author\n\nThank you to everyone who has taken an interest in this little pet project of mine — I honestly didn't expect it to get so many stars! And with that said, I also apologize for how slowly I am moving as work has been keeping me extraordinarily busy. If you have any questions, concerns, or would like to contribute, don't hesitate to write up an issue or submit a PR!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidiquis%2Falacpretty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolidiquis%2Falacpretty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidiquis%2Falacpretty/lists"}