Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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]

Awesome Lists containing this project

README

        

# hyprparse (ALPHA)
Alpha Hyprland/Hyprpaper/Hypr configuration file parser

This 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));
}
```