Skip to content

Unsetting screen_shader results in garbled image #1161

Description

@MahouShoujoMivutilde

As I've said in #1140 (comment) (see comment for log, but I can't see anything relevant there).

One thing I noticed is that if I:

  1. ...set the shader
  2. reload config (it'll apply as expected)
  3. then comment out the screen_shader variable to unset it
  4. and again reload config
    ...the screen will be compressed to a small line at the bottom of the monitor, the rest will be black.

(Just reloading to replace the shader works fine).

(You can restore the screen by undoing the config change and reloading it)

Particular shader used doesn't matter, e.g. effectively no-op shader causes the similar behavior:

// no-op
precision mediump float;
varying vec2 v_texcoord;
uniform sampler2D tex;

void main() {
    vec4 pixColor = texture2D(tex, v_texcoord);
    gl_FragColor = pixColor;
}

Also, hyprctl keyword decoration:screen_shader ~/.config/hypr/some_shader.frag doesn't actually apply shader (visually) but

hyprctl getoption decoration:screen_shader

will show the new path.

Reload won't help, because the shader that was originally set in screen_shader in config will be loaded.

System

  • Arch linux latest, 6.0.10 kernel
  • Nvidia 525.60.11 (instructions from the wiki applied)
  • Hyprland cb85eea

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions