fix: grayscale shader;

refactor: hyprlock;
refactor: played around with blur a little bit
This commit is contained in:
2025-10-01 02:15:36 +03:00
parent 18b8d720f2
commit 61d38cec16
3 changed files with 22 additions and 14 deletions

View File

@@ -1,9 +1,14 @@
#version 320 es
precision mediump float; precision mediump float;
varying vec2 v_texcoord; in vec2 v_texcoord; // Use 'in' instead of 'varying'
uniform sampler2D tex; uniform sampler2D tex;
out vec4 fragColor; // Use 'out' instead of 'gl_FragColor'
void main() { void main() {
vec4 this_colour = texture2D( tex, v_texcoord ); vec4 this_colour = texture(tex, v_texcoord);
float new_colour = (this_colour.r+this_colour.g+this_colour.b)/3.0; float new_colour = (this_colour.r + this_colour.g + this_colour.b) / 3.0;
gl_FragColor = vec4(new_colour,new_colour,new_colour,1.0); fragColor = vec4(new_colour, new_colour, new_colour, 1.0);
} }

View File

@@ -114,8 +114,6 @@ decoration {
rounding = 10 rounding = 10
rounding_power = 2 rounding_power = 2
dim_around = 1
# Change transparency of focused and unfocused windows # Change transparency of focused and unfocused windows
active_opacity = 1.0 active_opacity = 1.0
inactive_opacity = 1.0 inactive_opacity = 1.0
@@ -130,10 +128,14 @@ decoration {
# https://wiki.hyprland.org/Configuring/Variables/#blur # https://wiki.hyprland.org/Configuring/Variables/#blur
blur { blur {
enabled = true enabled = true
size = 3 size = 5
passes = 2 passes = 2
ignore_opacity = true
vibrancy = 0.1696 new_optimizations = true
vibrancy = 0
noise = 0
contrast = 1
} }
} }
@@ -175,7 +177,7 @@ animations {
animation = border, 1, 5.39, easeOutQuint animation = border, 1, 5.39, easeOutQuint
animation = windows, 1, 4.79, easeOutQuint animation = windows, 1, 4.79, easeOutQuint
animation = windowsIn, 1, 5, easeOutQuint, popin 0% animation = windowsIn, 1, 5, easeOutQuint, popin 0%
animation = windowsOut, 1, 5, linear, popin 0% animation = windowsOut, 1, 10, linear, popin 0%
animation = fadeIn, 1, 1.73, almostLinear animation = fadeIn, 1, 1.73, almostLinear
animation = fadeOut, 1, 1.46, almostLinear animation = fadeOut, 1, 1.46, almostLinear
animation = fade, 1, 3.03, quick animation = fade, 1, 3.03, quick
@@ -673,6 +675,7 @@ plugin {
debug { debug {
disable_logs = false disable_logs = false
overlay = false
} }
source = ~/.config/hypr/monitors.conf source = ~/.config/hypr/monitors.conf

View File

@@ -42,13 +42,13 @@ background {
image { image {
# TODO: store there images somewhere in the config dir # TODO: store there images somewhere in the config dir
path = /home/greg/Pictures/Things/lavey5.jpg path = /home/greg/Pictures/Things/niko.jpg
position = 0, 40 position = 0, 40
halign = center halign = center
valign = center valign = center
size = 100, 100 size = 100, 100
rounding = -1 rounding = -1
border_color = rgba(E96375ff) rgba(EB75DDff) 45deg border_color = rgba(9E223800)
shadow_passes = 1 shadow_passes = 1
shadow_size = 3 shadow_size = 3
shadow_color = rgb(aaaaaa) shadow_color = rgb(aaaaaa)
@@ -58,10 +58,10 @@ input-field {
monitor = monitor =
size = 15%, 5% size = 15%, 5%
outline_thickness = 3 outline_thickness = 3
inner_color = rgba(0, 0, 0, 0.2) # no fill inner_color = rgba(0, 0, 0, 0.5) # no fill
outer_color = rgba(E96375ff) rgba(EB75DDff) 45deg outer_color = rgba(9E223800)
check_color = rgba(EB75DDff) rgba(E96375ff) 120deg check_color = rgba(ffff00ff) rgba(E96375ff) 120deg
fail_color = rgba(ff6633ee) rgba(ff0066ee) 40deg fail_color = rgba(ff6633ee) rgba(ff0066ee) 40deg
font_color = rgb(255,255,255) font_color = rgb(255,255,255)