Skip to content
/ glbg Public

GL shader desktop background renderer for wlroots based compositors.

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.swaybg
Unknown
LICENSE.tomlc
Notifications You must be signed in to change notification settings

jw4js/glbg

Repository files navigation

glbg

glbg is a tool which renders GL shader desktop backgrounds to wlroots-based compositors supporting a subset of the Shadertoy API. It is compatible with any Wayland compositor which implements the wlr-layer-shell protocol and wl_output version 4.

Demo

Demo Final Flower Demo Shadertoy Tutorial

With a transparent background terminal, one can achieve the following effect. This also works with other windows which have transparency.

Demo Transparent

Compiling

Install dependencies:

  • meson *
  • wayland
  • wayland-protocols *
  • EGL
  • OpenGL-supporting grahpics driver

* Compile time dependency

Run these commands:

meson setup build
ninja -C build
sudo ninja -C build install

Running

glbg path/to/config.toml

Configuration

The program is configured using a TOML file similar to the following:

[[config]]
name = "name of display"
shader = "path/to/shader.glsl"

Note that the shader file is searched for relative to the location of the config file. To configure for multiple displays, simply duplicate the config block in the same file.

See the example.toml included in the repository.

Supported Shadertoy uniforms

  • iTime
  • iResolution

About

GL shader desktop background renderer for wlroots based compositors.

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.swaybg
Unknown
LICENSE.tomlc

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published