misc: readme cleanup, remove deps required by hyprgraphics (#762)
Some checks failed
Build / nix (push) Has been cancelled

This commit is contained in:
Maximilian Seidler 2025-05-05 23:45:32 +02:00 committed by GitHub
parent e3bd47e177
commit fae1c4f6fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 30 deletions

View file

@ -36,7 +36,7 @@ add_compile_definitions(HYPRLOCK_VERSION="${VERSION}")
if (DEFINED HYPRLOCK_COMMIT) if (DEFINED HYPRLOCK_COMMIT)
add_compile_definitions(HYPRLOCK_COMMIT="${HYPRLOCK_COMMIT}") add_compile_definitions(HYPRLOCK_COMMIT="${HYPRLOCK_COMMIT}")
else() else()
# get git commit # get git commit
execute_process( execute_process(
OUTPUT_VARIABLE GIT_SHORT_HASH OUTPUT_VARIABLE GIT_SHORT_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_STRIP_TRAILING_WHITESPACE
@ -82,9 +82,6 @@ pkg_check_modules(
hyprlang>=0.6.0 hyprlang>=0.6.0
egl egl
xkbcommon xkbcommon
libjpeg
libwebp
libmagic
cairo cairo
pangocairo pangocairo
libdrm libdrm

View file

@ -2,10 +2,14 @@
Hyprland's simple, yet multi-threaded and GPU-accelerated screen locking utility. Hyprland's simple, yet multi-threaded and GPU-accelerated screen locking utility.
## Features ## Features
- uses the secure ext-session-lock protocol - Uses the ext-session-lock protocol
- full support for fractional-scale - Support for fractional-scale
- fully GPU accelerated - Fully GPU accelerated
- multi-threaded resource acquisition for no hitches - Multi-threaded resource acquisition
- Blurred screenshot as the background
- Native fingerprint support (using libfprint's dbus interface)
- Some of Hyprland's eyecandy: gradient borders, blur, animations, shadows, etc.
- and more...
## How it looks ## How it looks
@ -25,26 +29,23 @@ yay -S hyprlock-git # compiles from latest source
### Deps ### Deps
You need the following dependencies You need the following dependencies
- wayland-client
- wayland-protocols
- mesa
- hyprwayland-scanner
And the development libraries for the following
- cairo - cairo
- libdrm - hyprgraphics
- pango - hyprland-protocols
- xkbcommon
- pam
- hyprlang - hyprlang
- hyprutils - hyprutils
- hyprgraphics - hyprwayland-scanner
- libmagic (file-devel on Fedora) - mesa (required is libgbm, libdrm and the opengl runtime)
- pam
- pango
- sdbus-cpp (>= 2.0.0)
- wayland-client
- wayland-protocols
- xkbcommon
Development libraries are usually suffixed with `-devel` or `-dev` in most distro repos. Sometimes distro packages are missing required development files.
Such distros usually offer development versions of library package - commonly suffixed with `-devel` or `-dev`.
You also need to install `mesa-libgbm-devel` on some distros like RPM based ones where its not
bundled with the mesa package.
### Building ### Building

View file

@ -4,11 +4,8 @@
cmake, cmake,
pkg-config, pkg-config,
cairo, cairo,
file,
libdrm, libdrm,
libGL, libGL,
libjpeg,
libwebp,
libxkbcommon, libxkbcommon,
libgbm, libgbm,
hyprgraphics, hyprgraphics,
@ -40,11 +37,8 @@ stdenv.mkDerivation {
buildInputs = [ buildInputs = [
cairo cairo
file
libdrm libdrm
libGL libGL
libjpeg
libwebp
libxkbcommon libxkbcommon
libgbm libgbm
hyprgraphics hyprgraphics

View file

@ -2,7 +2,6 @@
#include "../config/ConfigManager.hpp" #include "../config/ConfigManager.hpp"
#include "../core/Egl.hpp" #include "../core/Egl.hpp"
#include <cairo/cairo.h> #include <cairo/cairo.h>
#include <magic.h>
#include <pango/pangocairo.h> #include <pango/pangocairo.h>
#include <algorithm> #include <algorithm>
#include <filesystem> #include <filesystem>