commit a727217e7343f18eb8a2b10656077cb556bdcb81
parent 0203873e289192705861bfb9113c14acb45035df
Author: Andrew Laack <andrew@laack.co>
Date: Thu, 3 Sep 2026 01:47:24 -0500
Greyscale computer
Diffstat:
3 files changed, 32 insertions(+), 16 deletions(-)
diff --git a/gray-shader.glsl b/gray-shader.glsl
@@ -0,0 +1,16 @@
+#version 330
+
+in vec2 texcoord;
+uniform sampler2D tex;
+uniform float opacity;
+
+vec4 default_post_processing(vec4 c);
+
+vec4 window_shader() {
+ vec2 texsize = textureSize(tex, 0);
+ vec4 color = texture2D(tex, texcoord / texsize, 0);
+
+ color = vec4(vec3(0.2126 * color.r + 0.7152 * color.g + 0.0722 * color.b) * opacity, color.a * opacity);
+
+ return default_post_processing(color);
+}
diff --git a/picom.conf b/picom.conf
@@ -9,7 +9,7 @@
# Can be set per-window using rules.
#
# Default: false
-shadow = true;
+# shadow = true;
# The blur radius for shadows, in pixels.
#
@@ -52,7 +52,7 @@ shadow-offset-y = -7;
# unless no-fading-openclose is used. Can be set per-window using rules.
#
# Default: false
-fading = true;
+# fading = true;
# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
fade-in-step = 0.05;
@@ -78,24 +78,24 @@ fade-out-step = 0.05;
#
# Range: 0.1 - 1.0
# Default: 1.0 (disabled)
-frame-opacity = 0.8;
+frame-opacity = 1.0;
# Use fixed inactive dim value, instead of adjusting according to window opacity.
#
# Default: false
# inactive-dim-fixed = true
-opacity-rule = [
- "100:class_g = 'qutebrowser'",
- "100:class_g = 'feh'",
- "100:class_g = 'mpv'",
- "100:class_g = 'firefox'",
- "85:class_g = 'st-256color'",
- "85:class_g = 'tabbed'",
- "90:class_g = 'thunderbird'",
- "85:class_g = 'Emacs'",
- "90:class_g = 'zen'",
-];
+# opacity-rule = [
+# "100:class_g = 'qutebrowser'",
+# "100:class_g = 'feh'",
+# "100:class_g = 'mpv'",
+# "100:class_g = 'firefox'",
+# "85:class_g = 'st-256color'",
+# "85:class_g = 'tabbed'",
+# "90:class_g = 'thunderbird'",
+# "85:class_g = 'Emacs'",
+# "90:class_g = 'zen'",
+# ];
#################################
@@ -146,7 +146,7 @@ corner-radius = 0
# Can also be a pre-defined kernel, see the man page.
#
# Default: ""
-blur-kern = "3x3box";
+# blur-kern = "3x3box";
#################################
# General Settings #
diff --git a/xinitrc b/xinitrc
@@ -2,7 +2,7 @@
#/home/andrew/.fehbg &
-#picom &
+picom --backend=glx --window-shader-fg=$HOME/.config/gray-shader.glsl &
#qutebrowser &
#thunderbird &