hyproled icon indicating copy to clipboard operation
hyproled copied to clipboard

Window artifacts

Open tacsist opened this issue 1 year ago • 8 comments

image Couldn't get a better pic due to bug behavior. Ignore the windows border, in normal operation it doesn't happen, only multiple shader copies stay, becoming smaller with each copy.

I am experiencing a bug/graphical artifacting upon closing windows. I have hyproled running with cronjob and fullscreen script. When a window closing animation is done, hyproled leaves a repeating trail of itself on screen that persists until something changes on screen/updates the display (like opening a window, changing WPs). Happens on both monitors (depending which has the hyproled instance), doesn't happen when closing fullscreen apps. VFR/VRR(fs)/directscanout enabled. Not on git branch of hyprland. Could be hyprland bug rather than hyproled itself.

tacsist avatar Dec 16 '24 15:12 tacsist

Can you teach me how to use hyproled with a cron job? After setting it up, I keep getting the error: "HYPRLAND_INSTANCE_SIGNATURE not set! (Is Hyprland running?)". I looked up some information and found that crontab cannot load environment variables. How do you handle this?

ghost avatar Dec 16 '24 16:12 ghost

@ghost I updated the readme using the suggestion in your initial issue: https://github.com/mklan/hyproled/issues/1#issuecomment-2565833004

@tacsist could you determine it it is related to hyproled? I would need a config for a reproducer please.

mklan avatar Jan 03 '25 12:01 mklan

This could be a bug with aqua and/or amdgpu multigpu shenanigans. If I have time, i will try to test if it occurs with a singular monitor.

hyprland.conf

# #######################################################################################
# AUTOGENERATED HYPR CONFIG.
# PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT,
# OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
# #######################################################################################

# autogenerated = 1 # remove this line to remove the warning

# This is an example Hyprland config file.
# Refer to the wiki for more information.
# https://wiki.hyprland.org/Configuring/Configuring-Hyprland/

# Please note not all available settings / options are set here.
# For a full list, see the wiki

# You can split this configuration into multiple files
# Create your files separately and then link them to this file like this:
source = ~/.config/hypr/mocha.conf
source = ~/.config/hypr/monitors.conf
#source = ~/.config/hypr/workspaces.conf

###################
### MY PROGRAMS ###
###################

# See https://wiki.hyprland.org/Configuring/Keywords/

# Set programs that you use
$terminal = foot
$fileManager = nautilus
$menu = fuzzel

#############################
### ENVIRONMENT VARIABLES ###
#############################

# See https://wiki.hyprland.org/Configuring/Environment-variables/

# env = AQ_DRM_DEVICES,/dev/dri/card2:/dev/dri/card1

env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
env = HYPRCURSOR_THEME,catppuccin-mocha-mauve
env = XCURSOR_THEME,catppuccin-mocha-mauve-cursors

env = QT_QPA_PLATFORMTHEME,qt5ct
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1

env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
env = DCONF_PROFILE, hyprland

env = ELECTRON_OZONE_PLATFORM_HINT,wayland
env = GDK_BACKEND,wayland,x11,*
env = QT_QPA_PLATFORM,wayland;xcb

#################
### AUTOSTART ###
#################

# Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite applet at launch lke this:

# exec-once = $terminal
# exec-once = nm-applet &
# exec-once = waybar & hyprpaper & firefox

exec = gsettings set $gnome-schema gtk-theme 'Colloid-Purple-Dark-Compact-Catppuccin'
exec = gsettings set $gnome-schema icon-theme 'Papirus-Dark'
exec = gsettings set $gnome-schema cursor-theme 'Catppuccin-Mocha-Mauve'
exec = gsettings set $gnome-schema color-scheme 'prefer-dark'

# Core components (authentication, lock screen, notification daemon)

exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = gnome-keyring-daemon --start --components=secrets
exec-once = dbus-update-activation-environment --all
exec-once = hypridle
exec-once = hyprpm reload -n

# Audio
exec-once = easyeffects --gapplication-service

# Clipboard: history
# exec-once = wl-paste --watch cliphist store &
exec-once = wl-paste --type text --watch cliphist store # Stores only text data
exec-once = wl-paste --type image --watch cliphist store # Stores only image data
exec-once = hyprpaper
exec-once = waybar
exec-once = swaync
exec-once = swayosd-server

# OLED

exec = ~/.local/bin/oled-fs
exec-once = ~/.local/bin/oled-fs-fs
exec = xrandr --output DP-1 --primary

#####################
### LOOK AND FEEL ###
#####################

# Refer to https://wiki.hyprland.org/Configuring/Variables/

# https://wiki.hyprland.org/Configuring/Variables/#general
general { 
    gaps_in = 5
    gaps_out = 20

    border_size = 2

    # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
    col.active_border = rgba($mauveAlphaee) rgba($tealAlphaee) -45deg
    col.inactive_border = rgba($crustAlphaaa)

    # Set to true enable resizing windows by clicking and dragging on borders and gaps
    resize_on_border = false 

    # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
    allow_tearing = true

    layout = dwindle
}

# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration {
    rounding = 10

    # Change transparency of focused and unfocused windows
    active_opacity = 1.0
    inactive_opacity = 0.95

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

    # https://wiki.hyprland.org/Configuring/Variables/#blur
    blur {
        enabled = true
        size = 3
        passes = 1
        
        vibrancy = 0.1696
        new_optimizations = true
    }

    shadow {
        enabled = true
        range = 4
        render_power = 3
        color = rgba(1a1a1aee)
    }

}

# https://wiki.hyprland.org/Configuring/Variables/#animations
animations {
    enabled = true

    # 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 = borderangle, 1, 8, default
    animation = fade, 1, 7, default
    animation = workspaces, 1, 6, default
}

# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
dwindle {
    pseudotile = true
    preserve_split = true
}

# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
master {
    new_status = master
    allow_small_split = true
}

# https://wiki.hyprland.org/Configuring/Variables/#misc
misc {
    vrr = 2
    vfr = true
    force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
    disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
    render_unfocused_fps = 15
    animate_manual_resizes = true
    animate_mouse_windowdragging = false
    splash_font_family = FiraCode Nerd Font Propo Retina
    layers_hog_keyboard_focus = false
    font_family = FiraCode Nerd Font Propo Retina
    render_ahead_safezone = 1
    render_ahead_of_time = false
    disable_splash_rendering = true
}

render {
    direct_scanout = true
    explicit_sync = 2
    explicit_sync_kms = 2
}

xwayland {
    enabled = true
}

cursor {
    enable_hyprcursor = true
    sync_gsettings_theme = true
}

#############
### INPUT ###
#############

# https://wiki.hyprland.org/Configuring/Variables/#input
input {
    kb_layout = us
    kb_variant =
    kb_model =
    kb_rules =
    kb_options = fkeys:basic_13-24

    follow_mouse = 1

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

    touchpad {
        natural_scroll = true
        disable_while_typing = true
    }
    scroll_method = 2fg
    accel_profile = flat
    force_no_accel = true
    special_fallthrough = false
}

# https://wiki.hyprland.org/Configuring/Variables/#gestures
gestures {
    workspace_swipe = true
    workspace_swipe_fingers = 3
}

####################
###    PLUGINS   ###
####################

plugin {
    split-monitor-workspaces {
        count = 5
        keep_focused = 0
        enable_notifications = 0
        enable_persistent_workspaces = 0
    }



    overview {
        hideTopLayers = true
        hideOverlayLayers = true
        showEmptyWorkspace = false
        showNewWorkspace = true
        hideRealLayers = false
        reservedArea = 26
    }
    
    hyprbars {
        # example config
        bar_height = 28

        # example buttons (R -> L)
        # hyprbars-button = color, size, on-click
        bar_color = rgba($mantleAlphaea)
        col.text = rgba($textAlphaea)
        bar_text_font = FiraCode Nerd Font Propo Retina
        bar_text_size = 12
        bar_button_padding = 6
        hyprbars-button = rgba($redAlphaea), 16, 󰖭, hyprctl dispatch killactive
        hyprbars-button = rgba($yellowAlphaea), 16, , hyprctl dispatch fullscreen 1
    
        windowrulev2 = plugin:hyprbars:nobar, ^floating:0
        windowrulev2 = plugin:hyprbars:nobar, class:^(steam)$
        windowrule = plugin:hyprbars:nobar, title:^(Open File)(.*)$
        windowrule = plugin:hyprbars:nobar, title:^(Select a File)(.*)$
        windowrule = plugin:hyprbars:nobar, title:^(Open Folder)(.*)$
        windowrule = plugin:hyprbars:nobar, title:^(Save As)(.*)$
        windowrule = plugin:hyprbars:nobar, title:^(Library)(.*)$
        windowrule = plugin:hyprbars:nobar, title:^(File Upload)(.*)$

    }
}

####################
### KEYBINDINGSS ###
####################

# See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER # Sets "Windows" key as main modifier

# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, grave, overview:toggle
bind = $mainMod, T, exec, $terminal
bind = $mainMod, Q, killactive,
bind = $mainMod, D, exec, $fileManager
bind = $mainMod, V, togglefloating,
bind = $mainMod, return, exec, $menu
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod, L, exec, pkill wlogout || wlogout -p layer-shell
bind = $mainMod, H, exec, cliphist list | $menu --dmenu | cliphist decode | wl-copy
bind = $mainMod SHIFT, F, fullscreen

# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, 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

# Switch workspaces with mainMod + [0-5]
bind = $mainMod, 1, split-workspace, 1
bind = $mainMod, 2, split-workspace, 2
bind = $mainMod, 3, split-workspace, 3
bind = $mainMod, 4, split-workspace, 4
bind = $mainMod, 5, split-workspace, 5

# Move active window to a workspace with mainMod + SHIFT + [0-5]
bind = $mainMod SHIFT, 1, split-movetoworkspacesilent, 1
bind = $mainMod SHIFT, 2, split-movetoworkspacesilent, 2
bind = $mainMod SHIFT, 3, split-movetoworkspacesilent, 3
bind = $mainMod SHIFT, 4, split-movetoworkspacesilent, 4
bind = $mainMod SHIFT, 5, split-movetoworkspacesilent, 5

# Move between monitors
bind = $mainMod SHIFT, right, split-changemonitor, next
bind = $mainMod SHIFT, left, split-changemonitor, prev

# Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic

# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, split-workspace, next
bind = $mainMod, mouse_up, split-workspace, prev

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

# OSD stuff

# Sink volume raise optionally with --device
bind = , XF86AudioRaiseVolume, exec, swayosd-client --output-volume +5
# Sink volume lower optionally with --device
bind = , XF86AudioLowerVolume, exec, swayosd-client --output-volume -5
# Sink volume toggle mute
bind = , XF86AudioMute, exec, swayosd-client --output-volume mute-toggle
# Source volume toggle mute
bind = , XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle

# Brightness raise with custom value('+' sign needed)
bind = , XF86MonBrightnessUp, exec, swayosd-client --brightness +10
# Brightness lower with custom value('-' sign needed)
bind = , XF86MonBrightnessDown, exec, swayosd-client --brightness -10

bind = , print, exec, wayshot -s "$(slurp -d -c '##cba6f7')" --stdout | satty --filename -
##############################
### WINDOWS AND WORKSPACES ###
##############################

# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules

# Example windowrule v1
# windowrule = float, ^(kitty)$

# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$

windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.
windowrule = center, title:^(Open File)(.*)$
windowrule = center, title:^(Select a File)(.*)$
windowrule = center, title:^(Open Folder)(.*)$
windowrule = center, title:^(Save As)(.*)$
windowrule = center, title:^(Library)(.*)$
windowrule = center, title:^(File Upload)(.*)$

windowrule = float,title:^(Open File)(.*)$
windowrule = float,title:^(Select a File)(.*)$
windowrule = float,title:^(Open Folder)(.*)$
windowrule = float,title:^(Save As)(.*)$
windowrule = float,title:^(Library)(.*)$
windowrule = float,title:^(File Upload)(.*)$

# Steam
windowrulev2 = workspace special:magic silent, class:^(Steam)$
windowrulev2 = workspace special:magic silent, class:^(steam)$
windowrulev2 = float, class:^(Steam)$
windowrulev2 = float, class:^(steam)$

# Tearing
windowrule = immediate, class:^(gamescope)$
windowrule = immediate, class:^(steam)$

# Workspaces
workspace = r[1-5], monitor:eDP-2, default:true
workspace = r[11-15], monitor:DP-1, default:true

# workspace = 10, monitor:desc:ChangHong Electric Co.Ltd PMOS240-IFC-1 0101010101010


debug {
    suppress_errors = true
    damage_blink = false
    damage_tracking = 2
    colored_stdout_logs = true
}

oled-fs and oled-fs-fs (ignore naming):

#!/bin/bash

# Call me every now and then using cron

# Render overlay over bar (swap each call)
hyproled -s -a 0:0:3840:26 -m 1



#!/bin/bash

function handle {
  case $1 in
    'fullscreen>>1') hyproled off ;;
    'fullscreen>>0') hyproled -a 0:0:3840:26 -m 1 ;;
  esac
}

socat -U - UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock | while read -r line; do handle "$line"; done

tacsist avatar Jan 03 '25 16:01 tacsist

@mklan Here is a better showcase of the bug.

https://github.com/user-attachments/assets/e780f1a4-e6cd-4cc5-96b3-e71389d86876

tacsist avatar Jan 24 '25 15:01 tacsist

Hey I could not reproduce this. Could you try a real simple hypr config? just the animations, maybe a waybar and hyproled? But could be a different graphic card

mklan avatar Jan 27 '25 09:01 mklan

This seems to happen on my end if the hyprland's animations:enabled = true. Upon disabling them, problem seizes to exist. I will see what other options might be triggering it.

tacsist avatar Feb 02 '25 22:02 tacsist

will close for now due to inactivity. try the latest version and open a new issue if the issue still occurs

mklan avatar Aug 28 '25 12:08 mklan

The problem is there still, but some info got me thinking that it's a hyprland bug. I really should file a bug report.

tacsist avatar Sep 21 '25 21:09 tacsist