No description
Find a file
Tom Englund 5e18111121
renderer: shader code refactor (#12926)
* shader: begin the shader refactor

make SShader a class and rename it to CShader, move createprogram,
compileshader, logshadererror to CShader.

* shader: move uniform creation to CShader

move uniform creation to CShader, reduces tons of duplicated effort,
however forcing uniform names to be same in all shaders.

* shader: move to array based frag handling

use an array with an enum so it gets easier dealing with multiple
shaders, move creating program to a for loop and array, reduces line of
code a lot.

* shader: use shared ptr for frags

with smart pointers we can now rename useProgram to useShader and return
the shader directly, means only place we have to decide the shader frag
is when calling useShader. easier for future shader splitting to reduce
branching.

* shader: move unneded public members to private

move structs and uniforms to private add a get/set for initialtime
and add a getUniformLocation to make the code tell what its doing,
instead of direct array getting when all we wanted to get was its value,
also limits the setting of uniformLocations to the createProgram as it should
be.

* shader: fix style nits

set first enum member to 0 , remove extra {}

* shader: dont show a failed notif on success

the logic got inverted in the refactor here.

* shader: split CM shader to rgba/rgbx variants

split shader to rgba/rgbx variants, use bool, and reduce branching.

* shader: split up blurprepare CM and non CM

split up blurprepare, remove skipcm, move gain to gain.glsl.
remove ternary operator and reduce branching by using step() and mix()
use vec3 for gain, make brightness a cheap mulitplication with max.

* shader: split up border to CM/noncm variants

splitup border shader to CM/noncm variant, move common used things to
border.glsl , there is room for optimisations here but its a complex
shader im putting it for future PR.

* shader: touchup blurfinish

make brightness a cheap multiplication instead of branching.
mod is redundant, fract in hash already returns a value in [0.0, 1.0]
2026-01-12 18:27:16 +01:00
.github ci: disable comments for members 2025-12-11 12:40:02 +00:00
assets meson: drop 2025-11-17 08:54:47 +02:00
docs meson: drop 2025-11-17 08:54:47 +02:00
example example/hyprland.desktop: fix path 2025-12-26 14:39:29 +02:00
hyprctl hyprctl: use new hyprpaper ipc format (#12537) 2025-12-04 17:59:47 +00:00
hyprpm hyprpm: added plugin author (#12594) 2025-12-14 17:16:58 +00:00
hyprtester fix: handle fullscreen windows on special workspaces (#12851) 2026-01-08 22:27:00 +01:00
nix nix: add hyprland-uwsm to passthru.providedSessions 2026-01-10 01:09:41 +02:00
protocols render/cm: various updates, remove old protocols (#12693) 2025-12-27 18:01:46 +01:00
scripts build: replace generateVersion.sh (#12110) 2025-10-23 20:50:32 +01:00
src renderer: shader code refactor (#12926) 2026-01-12 18:27:16 +01:00
start start: use nixGL if Hyprland is nix but not NixOS (#12845) 2026-01-08 10:57:56 +01:00
subprojects subprojects: bump tracy 2026-01-05 12:57:40 +01:00
systemd desktop: Update Exec command for UWSM Hyprland desktop entry (#12580) 2025-12-07 17:48:14 +00:00
tests/desktop desktop: rewrite reserved area handling + improve tests (#12383) 2025-12-05 14:16:22 +00:00
.clang-format touch up the clang format and format all files 2022-12-20 02:18:47 +00:00
.clang-format-ignore style/ci: apply clang-format and verify it in ci (#4039) 2023-12-06 22:54:56 +00:00
.clang-tidy internal: fix clang-tidy "errors" (#11862) 2025-09-29 13:10:15 +01:00
.gitattributes Initial commit 2022-03-16 20:49:02 +01:00
.gitignore gitignore: add hyprland.desktop generated by cmake 2025-12-27 23:23:32 +02:00
.gitmodules Core: Move to aquamarine (#6608) 2024-07-21 13:09:54 +02:00
CMakeLists.txt render/cm: various updates, remove old protocols (#12693) 2025-12-27 18:01:46 +01:00
CODE_OF_CONDUCT.md doc: Add a CoC (#3366) 2023-09-20 19:38:44 +01:00
flake.lock [gha] Nix: update inputs 2026-01-03 21:12:46 +00:00
flake.nix desktop: rewrite reserved area handling + improve tests (#12383) 2025-12-05 14:16:22 +00:00
hyprland.pc.in cmake: fix XKBCOMMON variable typo (#12550) 2025-12-06 00:48:38 +00:00
LICENSE LICENSE: update year 2026-01-11 16:13:52 +01:00
Makefile hyprctl: include color management presets and sdr information (#12019) 2025-10-24 20:18:39 +01:00
README.md README: add link to CI from badge (#11085) 2025-07-18 21:13:56 +03:00
SECURITY.md SECURITY: init security policy 2025-04-27 00:07:00 +02:00
VERSION version: bump to 0.53.0 2025-12-29 16:21:36 +01:00

banner

Badge Workflow Badge License Badge Language Badge Pull Requests Badge Issues Badge Hi Mom


Hyprland is a 100% independent, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.

It provides the latest Wayland features, is highly customizable, has all the eyecandy, the most powerful plugins, easy IPC, much more QoL stuff than other compositors and more...



Install

Quick Start

Configure

Contribute



Features

  • All of the eyecandy: gradient borders, blur, animations, shadows and much more
  • A lot of customization
  • 100% independent, no wlroots, no libweston, no kwin, no mutter.
  • Custom bezier curves for the best animations
  • Powerful plugin support
  • Built-in plugin manager
  • Tearing support for better gaming performance
  • Easily expandable and readable codebase
  • Fast and active development
  • Not afraid to provide bleeding-edge features
  • Config reloaded instantly upon saving
  • Fully dynamic workspaces
  • Two built-in layouts and more available as plugins
  • Global keybinds passed to your apps of choice
  • Tiling/pseudotiling/floating/fullscreen windows
  • Special workspaces (scratchpads)
  • Window groups (tabbed mode)
  • Powerful window/monitor/layer rules
  • Socket-based IPC
  • Native IME and Input Panels Support
  • and much more...


Gallery


Preview A


Preview B


Preview C



Special Thanks


wlroots - For powering Hyprland in the past

tinywl - For showing how 2 do stuff

Sway - For showing how 2 do stuff the overkill way

Vivarium - For showing how 2 do stuff the simple way

dwl - For showing how 2 do stuff the hacky way

Wayfire - For showing how 2 do some graphics stuff