Skip to content

Building

vaxerski edited this page Nov 26, 2021 · 16 revisions

Building the WM (Recommended method)

first of all, make sure you have all the required packages installed.

Arch

sudo pacman -S cairo gdb gcc cmake libxcb xcb-proto xcb-util gtk4

(If this list is incomplete please report it to me!)

Now, you can either build it in the CLI or use an IDE (I recommend VS Code)

CLI

git clone https://github.com/vaxerski/Hypr
cd Hypr
mkdir build && cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -H./ -B./build -G Ninja
cmake --build ./build --config Release --target all -j 10

Hypr should now be built to ./build/Hypr.

You should now move it into /usr/bin and add a desktop session.

sudo cp ./build/Hypr /usr/bin

and paste the example desktop session into /usr/share/xsessions

sudo cp ./example/hypr.desktop /usr/share/xsessions

VS Code

Install the CMake and C/C++ Extensions packages from the VS Code Extension Marketplace

Restart VS Code and open Hypr as a folder. Set your preferred configuration on the bottom panel and hit build.

Move the built file into /usr/bin like above and add a desktop session.

Info

You will need to copy the Hypr built file every time you make a change for it to apply on your next X startup, but the desktop session does not need to be updated.

Clone this wiki locally