Giter Club home page Giter Club logo

glshell's Introduction

glshell

Creates a layer surface from a given GLSL fragment shader.

Can be used to create a simple overlay for a wayland compositor, a status bar, or a wallpaper.

Requirements:

  • A wayland compositor supporting wlr-layer-shell-unstable-v1

Usage

glshell FRAGMENT [OPTIONS]

Arguments:

  FRAGMENT                         path to the fragment shader
  -w, --width <width>              set the width of the overlay
                                   default: image width
  -h, --height <height>            set the height of the overlay
                                   default: image height
  -m, --margin <margin>            set the margin of the overlay
                                   default: 0
  -a, --anchor <anchor>:<anchor>   set the anchors of the overlay
                                   (top|middle|bottom):(left|middle|right)
                                   default: none (full screen)
  -r, --reserve                    reserve space for the overlay
                                   default: false
  -l, --layer <layer>              set the layer of the overlay
                                   (background|bottom|top|overlay)
                                   default: overlay
  -o, --output <output>            set the output of the overlay
                                   default: NULL

Examples:

glshell example/mandelbrot.frag -l background
glshell example/mandelbrot.frag -h 300 -m 10 -a top:middle -r -l bottom

Shader API

The shader is provided with the following uniforms:

uniform vec2 u_resolution; // the resolution of the overlay
uniform vec2 u_time;       // the time since the overlay was created in seconds

glshell's People

Contributors

duckonaut avatar

Stargazers

 avatar

Watchers

 avatar

glshell's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.