Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orangecms/fossasia-badge
simple tool to put custom text and animations on the badge, written in Go
https://github.com/orangecms/fossasia-badge
Last synced: about 1 month ago
JSON representation
simple tool to put custom text and animations on the badge, written in Go
- Host: GitHub
- URL: https://github.com/orangecms/fossasia-badge
- Owner: orangecms
- Created: 2024-05-30T14:37:01.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-31T17:17:09.000Z (7 months ago)
- Last Synced: 2024-11-01T07:34:07.505Z (2 months ago)
- Language: Go
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Badge "Magic" Tool
## Download font
NOTE: This step is optional, getting you a nice compact font.
http://littlelimit.net/k8x12.htm
```sh
wget https://littlelimit.net/arc/k8x12/k8x12_ttf_2021-05-05.zip
unzip -d k8x12 k8x12_ttf_2021-05-05.zip
```## Download prebuilt version
```sh
wget https://github.com/orangecms/fossasia-badge/releases/download/v0.0.10/badgemagic-tool
chmod +x badgemagic-tool # set executable permissions
```## Run it
```sh
sudo ./badgemagic-tool -mode anim "Your text..."
```NOTE: By default, the font is assumed to be in a subdirectory named `k8x12`.
With custom font:
```sh
sudo ./badgemagic-tool -mode anim -font path/to/font.ttf "Your text..."
```NOTE: If you set up udev rules, you will not need `sudo`.
Copy the file `99-ledbadge.rules` to `/etc/udev/rules.d/`.## Build yourelf
Given a Go compiler, after cloning this repository:
```sh
go build .
```