399da472a085e160367d897839e270acd52071a0

Author
outfoxxed <outfoxxed@outfoxxed.me>
Committer
outfoxxed <outfoxxed@outfoxxed.me>
Date

Message

Fix hyprload instructions in readme

Also use cmake directly to build

Diff

 1diff --git a/README.md b/README.md
 2index bfbc6d1de86bf9bbbd92c32ac57c7a22047bc770..368aa44394512ce1aee4ddcf8e0a64a2a069d68f 100644
 3--- a/README.md
 4+++ b/README.md
 5@@ -42,13 +42,13 @@ You can use `hy3:makegroup` to create a new split.
 6 ### Nix
 7 Under nix, use the provided devShell, then go to [Manual Installation](#manual)
 8 
 9-### [Hyprload](https://github.com/Duckonaut/hyprload) (currently untested)
10+### [Hyprload](https://github.com/Duckonaut/hyprload)
11 Add an entry to your hyprload.toml like so:
12 
13 ```toml
14 plugins = [
15   # ...
16-  "outfoxxed/hy3",
17+  { git = "https://github.com/outfoxxed/hy3", branch = "master", name = "hy3" },
18   # ...
19 ]
20 ```
21@@ -57,10 +57,8 @@ plugins = [
22 First export `HYPRLAND_HEADERS`, then run the following commands:
23 
24 ```sh
25-mkdir build
26-cd build
27-cmake -DCMAKE_BUILD_TYPE=Debug ..
28-make
29+cmake -DCMAKE_BUILD_TYPE=Debug -B build
30+cmake --build build
31 ```
32 
33 > **Note**: Please use a debug build as debugging a backtrace from a release build is much more difficult if you need to report an error.
34diff --git a/compile_commands_bear.sh b/compile_commands_bear.sh
35index f4a6ace9184b5f4d33c8c0962d9cfba614483ae4..d4105c62db3196990b4fb437aa463fe71fc94e98 100755
36--- a/compile_commands_bear.sh
37+++ b/compile_commands_bear.sh
38@@ -1,8 +1,4 @@
39 rm -rf build
40-mkdir -p build
41-cd build
42-cmake ..
43-bear -- make
44-mv compile_commands.json ..
45-cd ..
46+cmake -DCMAKE_BUILD_TYPE=Debug
47+bear -- cmake --build build
48 sed -i 's/-std=gnu++23/-std=gnu++2b/g' compile_commands.json
49diff --git a/compile_commands_cmake.sh b/compile_commands_cmake.sh
50index ddf12433992b9ec75bf4476d8e7ca5c8a34adfe2..fe213a42985aef2a5533d6ec0586b2c567be25a3 100755
51--- a/compile_commands_cmake.sh
52+++ b/compile_commands_cmake.sh
53@@ -1,6 +1,3 @@
54-mkdir -p build
55-cd build
56-cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
57-mv compile_commands.json ..
58-cd ..
59+cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -B build
60+mv build/compile_commands.json .
61 sed -i 's/-std=gnu++23/-std=gnu++2b/g' compile_commands.json