A read-only mirror of https://github.com/hyprwm/hyprlang
Go to file
Vaxry 221714841a core: fix value name in configSetValueSafe
fixes #29
2024-03-05 14:16:22 +00:00
.github/workflows CI: add fuzzing and sanitizing (#5) 2023-12-31 16:51:50 +01:00
include API: add anonymous special categories 2024-02-17 22:38:10 +00:00
nix Nix: change license to lgpl3Only 2024-03-03 18:10:57 +02:00
src core: fix value name in configSetValueSafe 2024-03-05 14:16:22 +00:00
tests core: fix value name in configSetValueSafe 2024-03-05 14:16:22 +00: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 cmakelists: bump ver to 0.4.1 2024-02-28 01:02:18 +00:00
COPYRIGHT repo: add COPYRIGHT file 2024-03-04 22:28:50 +00:00
LICENSE Relicense hyprlang to lgpl 3 (#27) 2024-03-03 00:10:20 +00:00
README.md readme: set better install prefix for cmake 2023-12-31 01:32:58 +01:00
flake.lock flake.lock: update nixpkgs 2024-02-24 17:14:14 +02:00
flake.nix Nix: fix the overlay and re-export properly (#26) 2024-02-23 11:48:52 +02:00
hyprlang-docs CI: deploy docs (#2) 2023-12-30 15:15:36 +01:00
hyprlang.pc.in use CMAKE_INSTALL_FULL_LIBDIR in pkgconfig instead of hardcoded lib 2024-01-09 17:20:04 +02:00

README.md

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 -DCMAKE_INSTALL_PREFIX:PATH=/usr -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

Visit hyprland.org/hyprlang to see the documentation.

Example implementation

For an example implmentation, take a look at the tests/ directory.