hyprwm / hyprlock

Hyprland's GPU-accelerated screen locking utility
BSD 3-Clause "New" or "Revised" License
794 stars 59 forks source link

`dots_fade_time` config option does not exists #522

Closed Ptitet closed 4 days ago

Ptitet commented 5 days ago

Regression?

No

Hyprlock Info and Version

v0.4.1-1

Hyprlock config ```sh general { no_fade_out = true ignore_empty_input = true } background { monitor = path = /home/user/wallpapers/winxp.jpg blur_passes = 1 blur_size = 7 noise = 0.017 } label { monitor = text = cmd[update:1000] date +"%T%n%A %d %B" text_align = right font_size = 25 font_family = FiraCode Nerd Font color = rgba(200, 200, 200, 0.5) halign = right valign = bottom position = -60, 50 } input-field { monitor = size = 130, 30 outline_thickness = 0 dots_size = 0.25 # Scale of input-field height, 0.2 - 0.8 dots_spacing = 0.3 # Scale of dots' absolute size, -1.0 - 1.0 dots_center = true dots_rounding = -1 # -1 default circle, -2 follow input-field rounding dots_fade_time = 5000 # Milliseconds until a dot fully fades in # dots-text-format = # Text character used for the input indicator. Leave empty for a rectangle that will be rounded via dots_rounding (default). outer_color = rgb(151515) inner_color = rgb(200, 200, 200) font_color = rgb(10, 10, 10) # font-family = Noto Sans # Font used for placeholder_text, fail_text and dots_text_format. fade_on_empty = true fade_timeout = 1000 # Milliseconds before fade_on_empty is triggered. placeholder_text = Password # Text rendered in the input box when it's empty. hide_input = false rounding = -1 # -1 means complete rounding (circle/oval) check_color = rgb(204, 136, 34) fail_color = rgb(204, 34, 34) # if authentication failed, changes outer_color and fail message color fail_text = $FAIL ($ATTEMPTS) # can be set to empty fail_timeout = 2000 # milliseconds before fail_text and fail_color disappears fail_transition = 300 # transition time in ms between normal outer_color and fail_color capslock_color = -1 numlock_color = -1 bothlock_color = -1 # when both locks are active. -1 means don't change outer color (same for above) invert_numlock = false # change color if numlock is off swap_font_color = false # see below position = 0, -20 halign = center valign = center } ```

Compositor Info and Version

System/Version info ```sh Hyprland, built from branch at commit 4520b30d498daca8079365bdb909a8dea38e8d55 (version: bump to 0.44.1). Date: Wed Oct 9 12:54:39 2024 Tag: v0.44.1, commits: 5309 built against aquamarine 0.4.2 flags: (if any) System Information: System name: Linux Node name: dell Release: 6.11.3-arch1-1 Version: #1 SMP PREEMPT_DYNAMIC Thu, 10 Oct 2024 20:11:06 +0000 GPU information: 00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 5500 [8086:1616] (rev 09) (prog-if 00 [VGA controller]) os-release: NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo plugins: ```

Description

The config option dots_fade_time in the input-field section has no effect, the dots always seems to fade in 200ms which is the default according to the wiki. Hyprlock says in its logs that this option does not exist, however the wiki says it does.

I don't know if this is a regression or not, I tried git bisect but I got compile errors on almost every commit.

How to reproduce

I set a shortcut which triggers hyprlock: bind = $mainMod SHIFT, L, exec, hyprlock. Then just start to type the password, and watch the dots fading in.

Crash reports, logs, images, videos

Config error in file /home/user/.config/hypr/hyprlock.conf at line 34: config option does not exist.

vaxerski commented 4 days ago

yes read the wiki carefully. Wiki instructions target git. It's available since 0.5