A read-only mirror of https://github.com/hyprwm/hyprlang
Find a file
2023-12-30 15:06:54 +01:00
.github/workflows oops 2023-12-30 15:06:54 +01:00
include doxygen: init 2023-12-30 14:31:48 +01:00
nix Nix/CI: add hyprlang-with-tests 2023-12-28 23:27:46 +02:00
src core: add options for config parser 2023-12-30 13:32:29 +01:00
tests core: add options for config parser 2023-12-30 13:32:29 +01:00
.clang-format initial commit 2023-12-28 20:38:01 +01:00
.gitignore doxygen: init 2023-12-30 14:31:48 +01:00
CMakeLists.txt cmake: add install targets 2023-12-29 20:04:23 +01:00
flake.lock Nix: init 2023-12-28 23:11:34 +02:00
flake.nix Nix/CI: add hyprlang-with-tests 2023-12-28 23:27:46 +02:00
hyprlang-docs doxygen: init 2023-12-30 14:31:48 +01:00
LICENSE Initial commit 2023-12-28 17:01:04 +01:00
README.md readme: add build instructions 2023-12-29 20:05:45 +01:00

hyprlang

The hypr configuration language is an extremely efficient, yet easy to work with, configuration language for linux applications.

It's user-friendly, easy to grasp, and easy to implement.

Building and installation

Building is done via CMake:

cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build
cmake --build ./build --config Release --target hyprlang -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`

Install with:

cmake --install ./build

Example config

bakery {
    counter_color = rgba(ee22eeff)          # color by rgba()
    door_color = rgba(122, 176, 91, 0.1)    # color by rgba()
    dimensions = 10 20                      # vec2
    employees = 3                           # int
    average_time_spent = 8.13               # float
    hackers_password = 0xDEADBEEF           # int, as hex

    # nested categories
    secrets {
        password = hyprland                 # string
    }
}

# variable
$NUM_ORDERS = 3

cakes {
    number = $NUM_ORDERS                    # use a variable
    colors = red, green, blue               # string
}

# keywords, invoke your own handler with the parameters
add_baker = Jeremy, 26, Warsaw
add_baker = Andrew, 21, Berlin
add_baker = Koichi, 18, Morioh

Docs

Soon™️