Commit Graph

96 Commits

Author SHA1 Message Date
Vaxry 78fcaa27ae cmake: bump ver to 0.5.1 2024-04-14 20:00:46 +01:00
Vaxry 748fb531ca lib: add escaping errors
fixes #39
2024-04-14 16:29:27 +01:00
Micovec c140261214
lib: Allow comment escaping with multiple `#` if it's the first char (#38)
* parse line - ignore leading spaces, tabs

* removed unnecessary substr functions

* parse line - discard empty lines sooner
2024-03-29 00:24:51 +00:00
Vaxry 95471ec86f core: allow specifying special keys with []
fixes #35
2024-03-28 16:44:44 +00:00
Sergey Fedorov b3e430f81f
config.cpp: fix environ for Apple (#34) 2024-03-24 03:20:55 +00:00
Vaxry a2f3942114 core: fix recursive variables in RHS of variable assignment
fixes #33
2024-03-20 18:48:46 +00:00
Vaxry a685493fdb cmake: bump sover to 2 2024-03-08 16:18:28 +00:00
Vaxry 84170ba0e5 cmake: bump ver to 0.5.0 2024-03-08 16:15:14 +00:00
Vaxry bba5daeaf9 header: undef internal symbols if not internal 2024-03-08 16:15:01 +00:00
Vaxry 2e2a1992c8 core: make option structs forward-ABI compatible 2024-03-08 15:47:21 +00:00
Vaxry 9995f54edd cmake: bump ver to 0.4.2 2024-03-07 18:14:09 +00:00
Vaxry 66c099e097 API: add pathIsStream to SConfigOptions 2024-03-07 18:14:02 +00:00
Vaxry f1db1a7e1f cmakelists: add O3 for release 2024-03-07 01:41:15 +00:00
Vaxry 221714841a core: fix value name in configSetValueSafe
fixes #29
2024-03-05 14:16:22 +00:00
Vaxry 7edc9a664e repo: add COPYRIGHT file 2024-03-04 22:28:50 +00:00
Mihai Fufezan 6cb791c18c
Nix: change license to lgpl3Only 2024-03-03 18:10:57 +02:00
Vaxry 3cc06e1687
Relicense hyprlang to lgpl 3 (#27)
---------

Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
2024-03-03 00:10:20 +00:00
Vaxry 42c66f6b44 cmakelists: bump ver to 0.4.1 2024-02-28 01:02:18 +00:00
Mihai Fufezan 0fce791ba2
flake.lock: update nixpkgs 2024-02-24 17:14:14 +02:00
Jacob Birkett f4466367ef
Nix: fix the overlay and re-export properly (#26)
* flake: made systems overrideable

* flake: do not use legacyPackages

* flake: add overlay named hyprlang

* flake: overlays: do not recurse with rec

* flake: overlays: only use drvs from final fixpoint

* flake: packages: correctly eval own overlay
2024-02-23 11:48:52 +02:00
Vaxry bbf5c30b0c core: throw custom value errors from handler 2024-02-19 14:22:12 +00:00
Vaxry bf5c561905 core: fix dynamic variable updates with special categories 2024-02-19 14:19:01 +00:00
Vaxry 11d5ccda07 cmake: bump sover to 1 2024-02-17 23:34:20 +00:00
Vaxry df4be17dea cmake: bump ver to 0.4.0 2024-02-17 23:32:21 +00:00
Vaxry 378c3e273b API: add anonymous special categories 2024-02-17 22:38:10 +00:00
Vaxry 65a7f870a6 internal: fix bugs on non-existent dynamic special requests 2024-02-17 19:11:22 +00:00
Vaxry 7b7e7cdd07 api: add listKeysForSpecialCategory 2024-02-17 19:01:35 +00:00
Vaxry aeb3e012ad cmake: bump ver to 0.3.2 2024-02-15 14:05:43 +00:00
Vaxry b0e3a884f5 docs: document configvalue's special STRING storage 2024-02-15 03:02:52 +00:00
Vaxry 61507d1b87 tests: add dynamic special test 2024-02-15 02:44:25 +00:00
Vaxry bb85de0919 internal: fix preload of dynamic special categories
oops
2024-02-15 02:44:11 +00:00
Vaxry 039f320202 docs: clarify special ptr validity 2024-02-15 02:34:04 +00:00
Vaxry 5a4768244b docs: clarify static ptrs 2024-02-15 02:27:27 +00:00
Vaxry 4a464738e2 internal: create special vars instantly at addSpecialConfigValue 2024-02-13 16:42:52 +00:00
Vaxry ebffe8f61d API: make addSpecialConfigValue take a ref to val
woo breaking API and ABI
2024-02-13 16:26:06 +00:00
Vaxry a3b1a6b649 cmake: bump version to 0.3.1 2024-02-12 21:46:12 +00:00
Zach DeCook 573cf83c51
core: Fix compilation and tests on 32bit architectures (#20)
* Fix compilation on 32-bit architectures

The 1234L suffix creates a 'long', which is not 64-bit on 32-bit architectures.

* Use stoll instead of stol to fix colors on 32-bit systems

on 32 bit systems, 'long' is 32 bits and 'long long' is 64 bits,
so the 'long long' functions need to be used.

* Fix rgba and rgb values on 32-bit

* Use a cast to Hyprlang::INT
2024-02-12 18:03:04 +00:00
Vaxry 78c16564ac build: unbreak clang 2024-02-12 17:23:50 +00:00
Vaxry 689b405d9d internal: fixes to config path handling 2024-02-12 15:13:27 +00:00
Vaxry dbe5835573 internal: make int errors throw 2024-02-11 16:15:03 +00:00
Vaxry 7c5f672b2f internal: various stability improvements 2024-02-11 15:38:51 +00:00
Vaxry c1f5b0ab48 internal: fix handling of escaped # 2024-02-10 01:50:22 +00:00
Vaxry 335d0c65e1 cmake: bump ver to 0.3.0 2024-02-09 20:30:26 +00:00
Vaxry f5056f78d5 api: add some qol stuff needed by hyprland 2024-02-09 16:31:08 +00:00
Vaxry ab007915f7 config: make special own its subcategories if not set 2024-02-09 04:35:16 +00:00
Vaxry 380453d389 Tests: fix for API change 2024-02-09 03:29:38 +00:00
Vaxry ff30ccf3cb API: add a few convenience funcs needed by hyprland 2024-02-09 03:28:34 +00:00
Vaxry 26d2638f74 API: fix usage of stl in parseFile 2024-02-09 03:28:07 +00:00
Pavel Solovev 25da0804b0 use CMAKE_INSTALL_FULL_LIBDIR in pkgconfig instead of hardcoded lib 2024-01-09 17:20:04 +02:00
Pavel Solovev d48680678d cmake: install pkgconfig in CMAKE_INSTALL_LIBDIR
This's a library so the pkgconfig file should be installed in CMAKE_INSTALL_LIBDIR
2024-01-09 11:01:51 +02:00