Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8621

Other • Hyprland Raspberry Pi 5 Raspberry Pi OS Lite Build

$
0
0
Image

GPU acceleration in tact

Build Notes

Code:

sudo apt update && sudo apt full-upgrade## Build Aquamarinesudo apt install -y git cmake ninja-build meson \python3-pip \libdrm-dev libiniput-dev libwayland-dev wayland-protocols \libpixman-1-dev libxkbcommon-dev libudev-dev \libseat-dev libegl1-mesa-dev libgles2-mesa-dev \libglvnd-dev hwdata libgtest-dev libdisplay-info-dev libgbm-dev \libzip-dev libcairo2-dev librsvg2-dev libfreetype6-dev libpng-dev \libjpeg-dev libtomlplusplus-dev libmagic-dev \libxcursor-dev libre2-dev libmuparser-dev \libxcb-xfixes0-dev libxcb-iccm4-dev libxcb-composite0-dev libxcb-ewmh-dev \libxcb-util-dev libxcb-randr0-dev libxcb-xinput-dev libxcb-cursor-dev \libxcb-res0-dev libxcb-damage0-dev libxcb-present-dev libxcb-render0-dev \libxcb-render-util0-dev libxcb-shape0-dev libxcb-xkb-dev libxcb-errors-dev# pugixmlmkdir -p ~/srccd ~/srcgit clone https://github.com/zeux/pugixml.gitcd pugixmlcmake -S . -B build \-DCMAKE_BUILD_TYPE=Release \-DCMAKE_INSTALL_PREFIX=/usrcmake --build build -j"$(nproc)"sudo cmake --install build# hyprwayland-scannercd ~/srcgit clone https://github.com/hyprwm/hyprwayland-scanner.gitcd hyprwayland-scannercmake -DCMAKE_INSTALL_PREFIX=/usr -B buildcmake --build build -j"$(nproc)"sudo cmake --install build# hyprutilscd ~/srcgit clone https://github.com/hyprwm/hyprutils.gitcd hyprutilscmake --no-warn-unused-cli \-DCMAKE_BUILD_TYPE=Release \-DCMAKE_INSTALL_PREFIX=/usr \-S . -B buildcmake --builRand build --config Release -j"$(nproc)"sudo cmake --install build#auquamarinecd ~/srcgit clone https://github.com/hyprwm/aquamarine.gitcd aquamarinecmake --no-warn-unused-cli \-DCMAKE_BUILD_TYPE=Release \-DCMAKE_INSTALL_PREFIX=/usr \-S . -B buildcmake --build build --config Release -j"$(nproc)"sudo cmake --install build# hyprlangcd ~/srcgit clone https://github.com/hyprwm/hyprlang.gitcd hyprlangcmake -B build \-DCMAKE_BUILD_TYPE=Release \-DCMAKE_INSTALL_PREFIX=/usrcmake --build build -j"$(nproc)"sudo cmake --install build# hyprcursorcd ~/srcgit clone https://github.com/hyprwm/hyprcursor.gitcd hyprcursorcmake -B build \-DCMAKE_BUILD_TYPE=Release \-DCMAKE_INSTALL_PREFIX=/usrcmake --build build -j"(nproc)"sudo cmake --install build# hyprgraphicscd ~/srcgit clone https://github.com/hyprwm/hyprgraphics.gitcd hyprgraphicscmake -B build \-DCMAKE_BUILD_TYPE=Release \-DCMAKE_INSTALL_PREFIX=/usrcmake --build build -j"$(nproc)"sudo cmake --install build# wayland-protocolscd ~/srcgit clone https://gitlab.freedesktop.org/wayland/wayland-protocols.gitcd wayland-protocolsmeson setup build \--prefix=/usr \--buildtype=releaseninja -C buildsudo ninja -C build install#hyprland-protocolscd ~/srcgit clone https://github.com/hyprwm/hyprland-protocols.git## Build Hyprlandcd ~/srcgit clone https://github.com/hyprwm/Hyprland.gitcd Hyprland## PATCHnano hyprctl/main.cppSomewhere at Line: 260change to:std::string socketPath = getRuntimeDir() + "/" + std::string(instanceSignature) + "/" + std::string(fi>hyprwayland-scanner \/usr/share/wayland-protocols/staging/color-management/color-management-v1.xml \protocols/hyprwayland-scanner \/usr/share/wayland-protocols/staging/content-type/content-type.v1.xml \protocols/nano ~/src/Hyprland/src/xwayland/XWM.hpparound line 217change to:return m_connection ? static_cast<xcb_connection_t*>(*m_connection) : nullptr;nano ~/src/Hyprland/src/config/defaultConfig.hpp#pragma once#include <string>#include <string_view>UNDER THE COMMENTSinline contexpr std::string_view EXAMPLE_CONFIG = R"();nano ~/src/Hyprland/src/devices/IKeyboard.cppreplace every xkb_keymap_new_from_names2 with:xkb_keymap_new_from_namesreplace every XKB_KEYMAP_FORMAT_TEXT_V2 with:XKB_KEYMAP_FORMAT_V1Lines:96112241247253277remove XKB_KEYMAP_FORMAT_V1nano ~/src/Hyprland/src/helpers/Monitor.cppLine 638change requestedModes.insert_range(requestedModes.end(), sortedModes | std::views::reverse);to:for (auto& mode : sortedModes | std::views::reverse) {    requestedModes.push_back(mode);}nano ~/src/Hyprland/src/managers/KeybindManager.cppLine 299 erase XKB_KEYMAP_FORMAT_TEXT_V2,Line 300xkb_keymap_new_from_names2 becomes: xkb_keymap_new_from_nameserase XKB_KEYMAP_FORMAT_TEXT_V2# nano -l (for lines in nano)## BUILDcmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usrcmake --build build -j"$(nproc)"sudo cmake --install build

Statistics: Posted by madderhatter — Tue Nov 18, 2025 10:16 pm



Viewing all articles
Browse latest Browse all 8621

Trending Articles