Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hyprland-community/hyprparse
Hyprland/Hyprpaper/Hypr configuration file parser [maintainer=@yavko]
https://github.com/hyprland-community/hyprparse
config configuration hypr hyprland parser
Last synced: 6 days ago
JSON representation
Hyprland/Hyprpaper/Hypr configuration file parser [maintainer=@yavko]
- Host: GitHub
- URL: https://github.com/hyprland-community/hyprparse
- Owner: hyprland-community
- License: agpl-3.0
- Created: 2023-01-19T04:29:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-14T00:28:52.000Z (over 1 year ago)
- Last Synced: 2024-04-24T18:54:31.071Z (7 months ago)
- Topics: config, configuration, hypr, hyprland, parser
- Language: Rust
- Homepage:
- Size: 50.8 KB
- Stars: 19
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hyprland - Hyprparse
README
# hyprparse (ALPHA)
Alpha Hyprland/Hyprpaper/Hypr configuration file parserThis is still in alpha so expect bugs, and if you do, please make an issue!
## how to add
```toml
hyprparse = { git = "https://github.com/hyprland-community/hyprparse" }
```## example usage
```rust ,no_run
use hyprparse::whole_parser;fn main() {
static CONFIG: &str = r#"
$test = -69
general:test4 = $test,$test,$test
general:test = rgb(69,69,69)
general:test5 = rgba(FFFFFFFF),rgb(000000),"hello!",test: "hello"
# hello
general {
test2 = rgba(7,8,9,100)
test3 = rgba(7,8,9,100) 0xFFFFFFFF rgb(4,4,4) 69deg
}
bind=SUPER_SHIFT, Q, exit
bind=,V,exit
"#;
println!("{:#?}", whole_parser(CONFIG));
println!("{}", whole_parser(CONFIG));
}
```