Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor visible on hyprlock despite hide_cursor. #460

Closed
JunaidQrysh opened this issue Aug 15, 2024 · 4 comments · Fixed by hyprwm/Hyprland#7647
Closed

Cursor visible on hyprlock despite hide_cursor. #460

JunaidQrysh opened this issue Aug 15, 2024 · 4 comments · Fixed by hyprwm/Hyprland#7647
Labels
bug Something isn't working

Comments

@JunaidQrysh
Copy link

Regression?

Yes

Hyprlock Info and Version

Hyprlock config
source = ~/.config/hypr/themes/lock.conf

# BACKGROUND
background {
    monitor =
    path = $HOME/.cache/hyde/wall.set
    blur_passes = 3
    contrast = 0.8916
    brightness = 0.8172
    vibrancy = 0.1696
    vibrancy_darkness = 0.0
}

# GENERAL
general {
    no_fade_in = false
    grace = 0
    disable_loading_bar = true
    hide_cursor = true
}

# INPUT FIELD
input-field {
    monitor =
    size = 250, 60
    outline_thickness = 2
    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
    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 = $background
    #color = rgba(255, 255, 255, 0.6)
    font_size = 25
    font_family = JetBrainsMono Nerd Font Bold
    position = 0, -40
    halign = center
    valign = center
}

# CURRENT SONG
label {
    monitor =
    text = cmd[update:1000] echo "$(whatsong.sh)" 
    color = $text
    #color = rgba(255, 255, 255, 0.6)
    font_size = 18
    font_family = JetBrainsMono
    position = 0, 50
    halign = center
    valign = bottom
}

Compositor Info and Version

System/Version info
<Paste the output of the command here>

Description

The exact commit that causes this issue is hyprwm/Hyprland@4fdc0d5. Switching to hyprwm/Hyprland@8b37e81 fixes it.
I have setup hyprlock on startup. When I reboot my laptop cursor is visible and typing does not work until I swipe my touchpad.

How to reproduce

1.Setup hyprlock on startup
2. Have hide_cursor = true in hyprlock.conf
2.Reboot
3.Move cursor and it disappears and now you can type.

Crash reports, logs, images, videos

No response

@Frost-Phoenix
Copy link

I have the exact same problem on NixOs with hyprlock from nixpkgs unstable.
When I reboot I see the mouse cursor and I cannot type but as soon as I touch the mouse the cursor disappear and I'm able to type my password.

@xiyori
Copy link

xiyori commented Sep 11, 2024

Still happens to me in latest Hyprland despite the fix.

Hyprlock config

# BACKGROUND
background {
    monitor =
    #path = screenshot
    path = $WALLPAPER2
    #color = $background
    blur_passes = 2
    blur_size = 3
    # contrast = 1
    # brightness = 0.5
    # vibrancy = 0.2
    # vibrancy_darkness = 0.2
}

# GENERAL
general {
    # no_fade_in = true
    # no_fade_out = true
    hide_cursor = true
    grace = 0
    disable_loading_bar = true
    # fractional_scaling = 1
}

# INPUT FIELD
input-field {
    monitor = DP-3
    size = 500, 80
    outline_thickness = 0
    dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
    dots_spacing = 0.35 # 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(255, 255, 255)
    fade_on_empty = false
    rounding = -1
    check_color = rgb(f9e2af)
    fail_color = rgb(f38ba8)
    swap_font_color = true
    placeholder_text = <span foreground="##cdd6f4">Input password...</span>
    fail_text = <span foreground="##000000">Authentication failed!</span>
    hide_input = false
    position = 0, -200
    halign = center
    valign = center
}

# TIME
label {
  monitor = DP-3
  text = cmd[update:1000] echo "$(date +"%H:%M")"
  color = rgb(255, 255, 255)
  font_size = 130
  font_family = monospace
  position = 0, 100
  halign = center
  valign = center
}

# USER
label {
    monitor = DP-3
    text = cmd[update:1000] echo "Hello there, $(whoami)"
    color = rgb(255, 255, 255)
    font_size = 22
    # font_family = sans-serif
    position = 0, -70
    halign = center
    valign = center
}

# CURRENT SONG
label {
    monitor = DP-3
    text = cmd[update:1000] ~/.scripts/audio/whatsong.sh
    color = rgb(cdd6f4)
    #color = rgba(255, 255, 255, 0.6)
    font_size = 22
    font_family = monospace
    position = 0, 50
    halign = center
    valign = bottom
}

System/Version info

Hyprland, built from branch  at commit 0f594732b063a90d44df8c5d402d658f27471dfe  (props: bump version to 0.43.0).
Date: Sun Sep 8 16:48:21 2024
Tag: v0.43.0, commits: 5196

Present in both hyprlock 0.4.1-1 (latest) and hyprlock-git. After reboot / start from tty with hyprlock set up on startup all keyboard input is disabled until mouse move and cursor visibility is not respected.

@JunaidQrysh
Copy link
Author

Yes, the issue is still present.

@PaideiaDilemma
Copy link
Contributor

Thanks, I know.
Since this is a Hyprland issue, please refer to hyprwm/Hyprland#7391

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants