https://github.com/lazypwny751/grubthemegen
Simple library for grub theme file format generator written in ruby.
https://github.com/lazypwny751/grubthemegen
codegen grub-theme grub2-theme library ruby theme
Last synced: 8 months ago
JSON representation
Simple library for grub theme file format generator written in ruby.
- Host: GitHub
- URL: https://github.com/lazypwny751/grubthemegen
- Owner: lazypwny751
- License: gpl-3.0
- Created: 2025-01-19T00:37:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-16T13:02:20.000Z (over 1 year ago)
- Last Synced: 2025-02-16T14:30:19.107Z (over 1 year ago)
- Topics: codegen, grub-theme, grub2-theme, library, ruby, theme
- Language: Ruby
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# grubthemegen

Simple ruby library for generate cool(😎) GNU/Grub theme files.
# Installation.
## From source.
```sh
git clone https://github.com/lazypwny751/grubthemegen.git && cd grubthemegen
make
```
## Or via gem.
```sh
gem install grubthemegen
# for uninstall.
gem uninstall grubthemegen
```
# Usage
Here is a sample, you can use that gnu grub file format components and properties.
```rb
require "grubthemegen"
theme = GrubTheme.new(title_text: "Init Title.")
theme.title_text = "Main Title."
theme.push(
theme.label(
text: %x(printf "%s" $(grub-install --version))
)
)
text = theme.gen()
puts(text)
```
# Also look.
- [ref](https://www.gnu.org/software/grub/manual/grub/html_node/Theme-file-format.html)
# Contributing.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
# License
[GPL3](https://choosealicense.com/licenses/gpl-3.0/)