Hyprland blue night filter

Hi, Hyprland users how do you enable blue night filter ? :sweat_smile:

I tried wl-gammarelay-rs it doesn’t work nothing happens then i tried wlsunset from https://libreddit.tux.pizzar/hyprland/comments/12qczxw/how_to_setup_blue_light_filter/ it doesn’t work too then i tried hyprshade and… doesn’t work too…

This is a snipped of my hyprland.conf :

home.file.“.config/hypr/hyprland.conf”.text = ‘’

monitor=,preferred,auto,auto

exec-once = waybar & nm-applet
exec-once = swww-daemon & swww img /home/user/wallpaper.png

source = ~/.config/hypr/myColors.conf

$terminal = kitty
$fileManager = thunar
$menu = wofi --show drun

Some default env vars.

env = GDK_BACKEND=wayland
env = QT_QPA_PLATFORM,wayland
env = SDL_VIDEODRIVER,wayland
env = CLUTTER_BACKEND,wayland
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = QT_QPA_PLATFORM,wayland;xcb
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = QT_QPA_PLATFORMTHEME,qt5ct
env = GTK_THEME,Sweet-Dark
env = XCURSOR_THEME,“Capitaine Cursors”
env = XCURSOR_SIZE,24

input {
kb_layout = us
kb_variant =
kb_model =
kb_options =
kb_rules =

follow_mouse = 1

touchpad {
    natural_scroll = false
}

sensitivity = 0 # -1.0 - 1.0, 0 means no modification.

}

general {

cursor_inactive_timeout = 1

gaps_in = 5
gaps_out = 0
border_size = 2
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa)

layout = dwindle

}

decoration {

rounding = 5

screen_shader = /home/user/.config/hypr/shaders.frag

#blur {
    #enabled = true
    #size = 3
    #passes = 1
    
    #vibrancy = 0.1696
#}

drop_shadow = true
shadow_range = 4
shadow_render_power = 3
col.shadow = rgba(1a1a1aee)

}

What i’m missing ?..

Gammastep.

$ hyprshade on blue-light-filter

This one is also working for me.

With shader below, I only changed username and after saving it’s also working.

screen_shader = /home/mee/.config/hypr/shaders.frag
# /home/mee/.config/hypr/shaders.frag

//
// Example blue light filter shader.
// 

precision mediump float;
varying vec2 v_texcoord;
uniform sampler2D tex;

void main() {

    vec4 pixColor = texture2D(tex, v_texcoord);

    pixColor[2] *= 0.8;

    gl_FragColor = pixColor;
}
1 Like

Hi, wlsunset works fine for me on hyprland.

1 Like

Hello, i would like to say thanks you for your help it’s working now ! I think i missconfigured my shaders.frag

@MatthieuB thx for your feedback :slight_smile:

1 Like