hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
19.61k stars 827 forks source link

Screenshots have the wrong color on Hyprland 0.42. #7528

Closed Slimemaster0 closed 2 weeks ago

Slimemaster0 commented 2 weeks ago

Regression?

Yes

System Info and Version

System/Version info ```sh Hyprland, built from branch at commit 9a09eac79b85c846e3a865a9078a3f8ff65a9259 (props: bump version to 0.42.0). Date: Wed Aug 7 19:17:10 2024 Tag: v0.42.0, commits: 5069 flags: (if any) System Information: System name: Linux Node name: gentoo Release: 6.10.6-gentoo-btw Version: #1 SMP PREEMPT_DYNAMIC Tue Aug 20 17:26:48 CEST 2024 GPU information: 07:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1638] (rev c4) (prog-if 00 [VGA controller]) os-release: NAME=Gentoo ID=gentoo PRETTY_NAME="Gentoo Linux" ANSI_COLOR="1;32" HOME_URL="https://www.gentoo.org/" SUPPORT_URL="https://www.gentoo.org/support/" BUG_REPORT_URL="https://bugs.gentoo.org/" VERSION_ID="2.15" plugins: ======Config-Start====== Config File: /home/slimemaster/.config/hypr/hyprland.conf: Read Succeeded # Environment variables env = HYPRLAND_HEADERS,$HOME/build/Hyprland env = WINEFSYNC,1 env = WINEESYNC,1 env = GTK_IM_MODULE,fcitx env = QT_IM_MODULE,fcitx env = XMODIFIERS,@im=fcitx env = SDL_IM_MODULE,fcitx env = GLFW_IM_MODULE,ibus env = WLR_DRM_NO_ATOMIC,0 #env = WLR_RENDERER,vulkan env = XKB_DEFAULT_LAYOUT, env = RUSTICL_ENABLE,radeonsi env = ADW_DEBUG_COLOR_SCHEME,prefer-dark env = QT_QPA_PLATFORMTHEME,kvantum env = QT_STYLE_OVERRIDE,kvantum env = XCURSOR_THEME,Catppuccin-Latte-Dark-Cursors env = XCURSOR_SIZE,32 env = HYPRCURSOR_THEME,theme_antmode env = HYPRCURSOR_SIZE,32 # # Please note not all available settings / options are set here. # For a full list, see the wiki # # See https://wiki.hyprland.org/Configuring/Monitors/ monitor=eDP-1,preferred,auto,1,bitdepth,10 misc:vrr=1 misc:vfr=0 # See https://wiki.hyprland.org/Configuring/Keywords/ for more # Theme GTK3 exec = gsettings set org.gnome.desktop.interface gtk-theme "adw-gtk3-dark" exec = gsettings set org.gnome.desktop.wm.preferences theme "adw-gtk3-dark" exec = gsettings set org.gnome.desktop.interface icon-theme 'candy-icons' exec = gsettings set org.gnome.desktop.interface cursor-theme Catppuccin-Latte-Dark-Cursors exec = gsettings set org.gnome.desktop.interface font-name 'Roboto 14' # Execute your favorite apps at launch exec-once = gentoo-pipewire-launcher exec-once = doas /usr/sbin/amdctl -m exec-once = doas /usr/sbin/amdctl -p2 -v110 exec-once = doas /usr/sbin/amdctl -p1 -v102 exec-once = doas /usr/sbin/amdctl -p0 -v96 #exec-once = systemctl --user stop xfce4-notifyd.service exec-once = dbus-update-activation-environment # --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP #exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP #exec-once = systemctl --user start xdg-desktop-portal-hyprland exec-once = hyprpaper exec-once = waybar; notify-send "Waybar crashed" "restarting..."; waybar; notify-send "Waybar crashed" "restarting..."; waybar exec-once = export XDG_CURRENT_DESKTOP=Hyprland exec-once = hyprctl setcursor Catppuccin-Latte-Dark-Cursors 32 exec-once = /usr/libexec/polkit-gnome-authentication-agent-1 exec-once = swaync; swaync; swaync exec-once = fcitx5 exec-once = corectrl exec-once = mkfifo /tmp/wobpipe exec-once = tail -f /tmp/wobpipe | wob #exec-once = kdeconnect-indicator #exec-once = $HOME/.local/share/hyprload/hyprload.sh #exec-once = corectrl # Send a notification when the config is reloaded exec = notify-send Hyprland "Config reloaded" -a Hyprland -i ~/.config/hypr/hyprland.png exec-once = killall notify-send # Stops the notification from being sent on launch # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ input { kb_layout = kb_variant = kb_model = kb_options = kb_rules = follow_mouse = 1 #accel_profile = custom 4 0.0 1.0 3.0 4.0 accel_profile = adaptive touchpad { natural_scroll = no } sensitivity = -0.4 # -1.0 - 1.0, 0 means no modification. } general { allow_tearing = false # See https://wiki.hyprland.org/Configuring/Variables/ for more gaps_in = 6 gaps_out = 12 border_size = 2 col.active_border = 0xff27a1b9 col.inactive_border = rgba(c0caf588) layout = dwindle } decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more rounding = 13 blur { enabled = yes popups = yes size = 10 passes = 1 new_optimizations = on } drop_shadow = yes shadow_range = 15 shadow_render_power = 5 col.shadow = rgba(c0caf588) # col.shadow_inactive = 0xff161619 } # Blur for waybar #layerrule = blur, waybar layerrule = ignorezero, waybar layerrule = ignorealpha 0, waybar layerrule = blur, waybar layerrule = ignorezero, wob layerrule = ignorealpha 0, wob layerrule = blur, wob animations { enabled = yes # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more bezier = myBezier, 0.05, 0.9, 0.1, 1.05 animation = windows, 1, 7, myBezier animation = windowsOut, 1, 7, default, popin 80% animation = border, 1, 10, default animation = fade, 1, 7, default animation = workspaces, 1, 6, default #animation = windowsmove # animation = layers, 1, 7, 1, 1, slide } dwindle { # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more pseudotile = no # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below preserve_split = yes # you probably want this } master { # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more } gestures { # See https://wiki.hyprland.org/Configuring/Variables/ for more workspace_swipe = on } cursor { enable_hyprcursor = true inactive_timeout = 60 } # Example per-device config # See https://wiki.hyprland.org/Configuring/Keywords/#executing for more # Example windowrule v1 # windowrule = float, ^(kitty)$ # Example windowrule v2 # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more windowrule=tile, ^(emacs)$ windowrule=rounding 4, ^(waybar)$ windowrule=float, ^(moe.launcher.an-anime-game-launcher)$ windowrule=float, ^(moe.launcher.an-anime-borb-launcher)$ windowrule=float, ^(moe.launcher.the-honkers-railway-launcher)$ #windowrulev2=tile, title:^(C:\windows\syswow64\cmd.exe)$ windowrulev2=tile, class:^(byond.exe)$ windowrulev2=tile, class:^(dreamseeker.exe)$ #windowrulev2=immediate,title:(Freesync test) windowrulev2 = immediate, class:^(steam_app_379720)$ windowrulev2 = stayfocused, title:^()$,class:^(steam)$ windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$ windowrule = opacity 0.9, ^(heroic)$ windowrulev2 = opacity 0.9, class:^(steam)$ # See https://wiki.hyprland.org/Configuring/Keywords/ for more $mainMod = SUPER # Screenreader bind = $mainMod, Y, exec, wl-paste -p | festival --tts - # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod, RETURN, exec, env -u SDL_VIDEODRIVER kitty bind = $mainMod, Q, killactive, bind = $mainMod SHIFT, E, exec, ~/.config/rofi/powermenu/type-4/powermenu.sh bind = $mainMod, E, exec, kitty lf bind = $mainMod, V, togglefloating, bind = $mainMod, R, exec, rofi -show drun bind = $mainMod, P, exec, grim && notify-send "Screenshot taken" bind = $mainMod, I, togglesplit, # dwindle bind = $mainMod, B, exec, qutebrowser --qt-flag force-gpu-rasterization --qt-flag enable-gpu-rasterization --qt-flag enable-accelerated-video-decode #bind = $mainMod, D, exec, rofi -show drun bind = $mainMod, F, Fullscreen, # Volume $volDiplay = echo $(wpctl get-volume @DEFAULT_AUDIO_SINK@ | sed 's/Volume: //g' | sed 's/\.//g') volume > /tmp/wobpipe $volRaise = wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+; $volDiplay $volLower = wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; $volDiplay # Sink volume raise binde =, XF86AudioRaiseVolume, exec, $volRaise # Sink volume lower binde =, XF86AudioLowerVolume, exec, $volLower # Sink volume toggle mute binde =, XF86AudioMute, exec, swayosd-client --output-volume mute-toggle # Source volume toggle mute binde =, XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle # Sink volume raise binde = $mainMod, F3, exec, $volRaise # Sink volume lower binde = $mainMod, F2, exec, $volLower # Sink volume toggle mute binde = $mainMod, F1, exec, swayosd-client --output-volume mute-toggle # Move focus with mainMod + Vim keys bind = $mainMod, H, movefocus, l bind = $mainMod, L, movefocus, r bind = $mainMod, K, movefocus, u bind = $mainMod, J, movefocus, d # Switch workspaces with mainMod + [0-9] bind = $mainMod, 1, workspace, 1 bind = $mainMod, 2, workspace, 2 bind = $mainMod, 3, workspace, 3 bind = $mainMod, 4, workspace, 4 bind = $mainMod, 5, workspace, 5 bind = $mainMod, 6, workspace, 6 bind = $mainMod, 7, workspace, 7 bind = $mainMod, 8, workspace, 8 bind = $mainMod, 9, workspace, 9 bind = $mainMod, 0, workspace, 10 # Move active window to a workspace with mainMod + SHIFT + [0-9] bind = $mainMod SHIFT, 1, movetoworkspace, 1 bind = $mainMod SHIFT, 2, movetoworkspace, 2 bind = $mainMod SHIFT, 3, movetoworkspace, 3 bind = $mainMod SHIFT, 4, movetoworkspace, 4 bind = $mainMod SHIFT, 5, movetoworkspace, 5 bind = $mainMod SHIFT, 6, movetoworkspace, 6 bind = $mainMod SHIFT, 7, movetoworkspace, 7 bind = $mainMod SHIFT, 8, movetoworkspace, 8 bind = $mainMod SHIFT, 9, movetoworkspace, 9 bind = $mainMod SHIFT, 0, movetoworkspace, 10 # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e-1 bind = $mainMod, mouse_up, workspace, e+1 # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow # Extras for making stuff work source = ~/.config/hypr/compat.conf source = ~/.config/hypr/themes/cyber/theme.conf Config File: /home/slimemaster/.config/hypr/compat.conf: Read Succeeded windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$ windowrulev2 = noanim,class:^(xwaylandvideobridge)$ windowrulev2 = nofocus,class:^(xwaylandvideobridge)$ windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$ windowrulev2 = nearestneighbor,class:^(tconfig.exe)$ exec-once = /usr/libexec/xdg-desktop-portal-gtk Config File: /home/slimemaster/.config/hypr/themes/cyber/theme.conf: Read Succeeded $THEME_DIR=$HOME/.config/hypr/themes/cyber #monitor=,addreserved,55,0,0,0 general { border_size=4 col.active_border=0xFFFFECFD col.inactive_border=0xFFEDFDFF gaps_in=8 gaps_out=16 } layerrule = animation slide 6 1 0, rofi decoration { rounding=12 drop_shadow=1 shadow_range=30 shadow_render_power=2 shadow_ignore_window=1 shadow_offset= 0 0 col.shadow=0xFFFA0DED col.shadow_inactive=0xFF3292F3 #screen_shader=/home/taylor/.config/hypr/crt.frag blur { enabled=1 size=10 passes=3 new_optimizations=1 noise=0.04 } } layerrule=blur,gtk-layer-shell layerrule=ignorezero,gtk-layer-shell layerrule=blur,notifications layerrule=ignorezero,notifications layerrule=blur,rofi layerrule=ignorezero,rofi #unbind=SUPER,Return #bind=SUPER,Return,exec,footclient #bind=SUPER,B,exec,eww -c $THEME_DIR/eww/ open --screen 0 --toggle bar0 bind=SUPER,D,exec,rofi -no-lazy-grab -show drun -theme "$THEME_DIR"/rofi/launcher.rasi #bindr=SUPER,Super_L,exec,pkill rofi || rofi -no-lazy-grab -show drun -theme "$THEME_DIR"/rofi/launcher.rasi bind=SUPERSHIFT,D,exec,GDK_BACKEND=x11 QT_QPA_PLATFORM=xcb SDL_VIDEODRIVER=x11 rofi -drun-show-actions -no-lazy-grab -show drun -theme "$THEME_DIR"/rofi/launcher.rasi bind=SUPERALT,D,exec, rofi -drun-show-actions -no-lazy-grab -show drun -theme "$THEME_DIR"/rofi/launcher.rasi exec-once=foot --server --config="$THEME_DIR"/foot/foot.ini exec=pkill -9 swwwpaper ; "$THEME_DIR"/scripts/swwwpaper "$THEME_DIR"/wallpaper/ exec=killall -3 eww & sleep 1 && "$THEME_DIR"/eww/launch_bar #exec-once="$THEME_DIR"/scripts/flicker ======Config-End======== ```

Description

The red and blue channels have been swapped.

How to reproduce

Take a screenshot with grim.

Also donno if it's relevant but I use Gentoo.

Crash reports, logs, images, videos

This is what it looks like when I take a screenshot: 20240826_16h31m54s_grim

This is what my wallpaper is supposed to look like: night-light

owenh28 commented 2 weeks ago

do not run or click the link in the previous response, it's most likely malware!

Slimemaster0 commented 2 weeks ago

Yeah Raf warned about it on Discord.

izmyname commented 2 weeks ago

I wonder why they are here and why hyprland repo is the only one being attacked.

vaxerski commented 2 weeks ago

it's fixed in git