hyprlock icon indicating copy to clipboard operation
hyprlock copied to clipboard

Only locks primary screen and ignores secondary screen

Open RononDex opened this issue 1 year ago • 5 comments

It appears (with hyprlock-git at least) that hyprlock does not lock all the screens, but only the primary one.

When I lock my screen, the second screen seems untouched and unlocked.

My monitors.conf:

monitor=eDP-1, 1920x1200, 0x0, 1
monitor=DP-7,1920x1200@60,0x0,1,mirror,eDP-1
monitor=DP-5,1920x1200@60,1920x0,1
monitor=,preferred,auto,1

My hyprlock.conf:

source = ~/.cache/wal/hyprland-colors.conf
#  _                      _            _    
# | |__  _   _ _ __  _ __| | ___   ___| | __
# | '_ \| | | | '_ \| '__| |/ _ \ / __| |/ /
# | | | | |_| | |_) | |  | | (_) | (__|   < 
# |_| |_|\__, | .__/|_|  |_|\___/ \___|_|\_\
#        |___/|_|                           
# 
general {
    ignore_empty_input = true
    no_fade_in = false
    grace = 0
    disable_loading_bar = true
}

background {
    monitor =
    path = screenshot

    # all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations
    blur_passes = 3 # 0 disables blurring
    blur_size = 6
    noise = 0.0117
    contrast = 0.8916
    brightness = 0.8172
    vibrancy = 0.1696
    vibrancy_darkness = 0.0
}

# INPUT FIELD
input-field {
    monitor =
    size = 500, 60
    outline_thickness = 3
    dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
    dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0
    dots_center = true
    outer_color = rgba(0, 0, 0, 0)
    inner_color = rgba(0, 0, 0, 0.5)
    font_color = rgb(200, 200, 200)
    fade_on_empty = false
    font_family = JetBrains Mono Nerd Font Mono
    placeholder_text = <i><span foreground="##cdd6f4">Input Password...</span></i>
    hide_input = false
    position = 0, -120
    halign = center
    valign = center
}

# TIME
label {
    monitor =
    text = cmd[update:1000] echo "$(date +"%-I:%M%p")"
    color = $foreground
    #color = rgba(255, 255, 255, 0.6)
    font_size = 120
    font_family = JetBrains Mono Nerd Font Mono ExtraBold
    position = 0, -300
    halign = center
    valign = top
}

# USER
label {
    monitor =
    text = Hi there, $USER
    color = $foreground
    #color = rgba(255, 255, 255, 0.6)
    font_size = 25
    font_family = JetBrains Mono Nerd Font Mono
    position = 0, -40
    halign = center
    valign = center
}

RononDex avatar Jun 13 '24 08:06 RononDex

Just realised, that when I try to move the mouse (when locked) to the second screen, it just turns red, so it is indeed locked and can not be interacted with.

However, as long as the mouse is not moved, the content of the second screen is still visible as if it were unlocked

RononDex avatar Jun 13 '24 09:06 RononDex

@RononDex Something to be aware of, since your background.path value is set to "screenshot" it's always going to take a screenshot of the contents of the desktop - then use that picture as the background.

I just had a potential bug where my image didn't exist, but I had a color set and 2 of my 3 monitors were just showing the desktop

They were locked, but it didn't update appropriately. Removing my path entirely, so it explicitly skips to color, appears to have solved that

Does this still happen when you have a static path to a picture?

Spiker985 avatar Jul 09 '24 01:07 Spiker985

Could be hyprland related as well. Did you make sure to check on hyprland-git? Edit: ups, this is one month old. I think it indeed was hyprland related and should not happen any more. Maybe @RononDex you can check.

PointerDilemma avatar Jul 09 '24 17:07 PointerDilemma

I am currently using hyprland, hypridle-git and hyprlock-git and the issue was resolved some time ago, not sure what or which version fixed it. I am still using the same config

RononDex avatar Jul 15 '24 06:07 RononDex

Same issue here. Here is my hyprland and hyprlock config https://github.com/clementpoiret/nixos-config/tree/main/modules/home/hyprland

clementpoiret avatar Jul 21 '24 14:07 clementpoiret