Alpha Hyprland/Hyprpaper/Hypr configuration file parser

Overview

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

hyprparse = { git = "https://github.com/hyprland-community/hyprparse" }

example usage

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));
}
You might also like...
Single File Assets is a file storage format for images

SFA (Rust) Single File Assets is a file storage format for images. The packed images are not guaranteed to be of same format because the format while

A command-line tool aiming to upload the local image used in your markdown file to the GitHub repo and replace the local file path with the returned URL.
A command-line tool aiming to upload the local image used in your markdown file to the GitHub repo and replace the local file path with the returned URL.

Pup A command line tool aiming to upload the local image used in your markdown file to the GitHub repo and replace the local file path with the return

A tool for determining file types, an alternative to file

file-rs a tool for determining file types, an alternative to file whats done determining file extension determining file type determining file's mime

SAORI for UKAGAKA. Convert a image file to resized png file.

Resized Png GitHub repository これは何? デスクトップマスコット、「伺か」で使用できるSAORIの一種です。 機能としては、指定した画像ファイルを拡大または縮小し、pngとして出力します。 「伺か」「SAORI」等の用語については詳しく説明いたしませんのでご了承下さい。

FileSorterX is an automatic file sorting application that sorts your files into folders based on their file extension
FileSorterX is an automatic file sorting application that sorts your files into folders based on their file extension

FileSorterX is an automatic file sorting application that sorts your files into folders based on their file extension. With FileSorterX, you can easily keep your files organized and find what you need quickly.

My own image file format created for fun! Install the "hif_opener.exe" to open hif files. clone the repo and compile to make your own hif file

Why am i creating this? I wanted to create my own image format since I was 12 years old using Windows 7, tryna modify GTA San Andreas. That day, when

A very opinionated, zero-configuration shell prompt
A very opinionated, zero-configuration shell prompt

A very opinionated, zero-configuration shell prompt

Irx-config - The library provides convenient way to represent/parse configuration from different sources

The irx-config library provides convenient way to represent/parse configuration from different sources. The main goals is to be very easy to use and t

Application microframework with command-line option parsing, configuration, error handling, logging, and shell interactions
Application microframework with command-line option parsing, configuration, error handling, logging, and shell interactions

Abscissa is a microframework for building Rust applications (either CLI tools or network/web services), aiming to provide a large number of features w

Comments
  • Add better parser for mutliple args

    Add better parser for mutliple args

    right now the parser to split a line's args is really broken, and needs someone smart to fix it ex: thing = some,thing,wow -> ["some", "thing", "wow"] this is cool and all but below it gets way harder thing = rgba6,9,6,9),some string with (),rgb(4,2,0) -> ["rgba(6,9,69)", "some string with ()", "rgb(4,2,9)"] yeah idk how to do this properly the current solution is very very broken

    bug enhancement 
    opened by yavko 1
Owner
Hyprland Community
Unofficial place for Hyprland related projects to be stored!
Hyprland Community
A cli util to apply themes to hyprland

Hyprtheme works with themes installed at ~/.config/hypr/themes additional themes can be installed from hyprland-community/theme-repo theme.toml this f

Hyprland Community 4 Jan 15, 2023
An unofficial rust wrapper for hyprland's IPC [maintainer=@yavko]

Hyprland-rs An unofficial rust wrapper for Hyprland's IPC Disclaimer If something doesn't work, doesn't matter what, make sure you are on the latest c

Hyprland Community 68 Apr 26, 2023
KDE activities for hyprland [maintainer=@yavko]

Hypract [WIP] KDE activities for Hyprland using Hyprland-rs Usage This cli tool replaces your workspace change commands so keep that in mind use switc

Hyprland Community 5 Jul 9, 2023
Automatically dim windows in Hyprland when switching between them.

hyprdim hyprdim is a daemon that automatically dims windows in Hyprland when switching between them. Features Easily see which window has focus, even

Donovan Glover 3 Aug 13, 2023
Rust File Management CLI is a command-line tool written in Rust that provides essential file management functionalities. Whether you're working with files or directories, this tool simplifies common file operations with ease.

Rust FileOps Rust File Management CLI is a command-line tool written in Rust that provides essential file management functionalities. Whether you're w

Harikesh Ranjan Sinha 5 May 2, 2024
A command line tool for easily generating multiple versions of a configuration file from a single template

MultiConf A command line tool for easily generating multiple versions of a configuration file from a single template. Why? I'm a big fan of the i3 win

Ian Clarke 4 Dec 10, 2022
CLI application to run clang-format on a set of files specified using globs in a JSON configuration file.

run_clang_format CLI application for running clang-format for an existing .clang-format file on a set of files, specified using globs in a .json confi

martin 6 Dec 16, 2022
Set Shell Environment Variables across multiple shells with a single configuration file.

Xshe – Cross-Shell Environment Vars xshe allows for setting Shell Environment Variables across multiple shells with a single TOML configuration file.

Ethan Kinnear 9 Dec 16, 2022
CLI application to run clang-tidy on a set of files specified using globs in a JSON configuration file.

run-clang-tidy CLI application for running clang-tidy for an existing .clang-tidy file on a set of files, specified using globs in a .json configurati

martin 7 Nov 4, 2022
A language parser tool to build recursive descent top down parser.

lang-pt A language parser tool to generate recursive descent top down parser. Overview Parsers written for the languages like Javascript are often cus

Creative Forest 7 Jan 4, 2023