hyprwm / hyprlock

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

Can see a bit of my desktop though hyprlock #461

Open DHDcc opened 2 months ago

DHDcc commented 2 months ago

Regression?

No

Hyprlock Info and Version

hyprlock v0.4.1-1

Hyprlock config ```sh # GENERAL general { no_fade_in = false grace = 0 disable_loading_bar = false hide_cursor = true ignore_empty_input = true text_trim = true } #BACKGROUND background { monitor = path = $HOME/.config/swww/wallpapers/abstract.png blur_size = 2 blur_passes = 3 # 0 disables blurring contrast = 1.3000 brightness = 0.8000 vibrancy = 0.2100 vibrancy_darkness = 0.0 } # TIME HR label { monitor = text = cmd[update:1000] date +"%H" color = rgba(255, 255, 255, 1) #shadow_pass = 2 shadow_size = 3 shadow_color = rgb(0,0,0) shadow_boost = 1.2 font_size = 200 font_family = AlfaSlabOne position = 0, -270 halign = center valign = top } # TIME label { monitor = text = cmd[update:1000] date +"%M" color = rgba(255, 255, 255, 1) font_size = 200 font_family = AlfaSlabOne position = 0, -500 halign = center valign = top } # DATE label { monitor = text = cmd[update:1000] date +"%d %b %A" color = rgba(255, 255, 255, 1) font_size = 17 font_family = JetBrains Mono Nerd Font Mono ExtraBold position = 10, -115 halign = center valign = center } # LOCATION & WEATHER label { monitor = text = cmd[update:1000] ~/.scripts/weather.sh color = rgba(255, 255, 255, 1) font_size = 17 font_family = JetBrains Mono Nerd Font Mono ExtraBold position = 0, 665 halign = center valign = center } # Music Background #shape { # monitor = # size = 420, 90 # rounding = 10 # border_size = 1 # color = rgba(0,0,0,1) # border_color = rgba(249,249,249,1) # rotate = 0 # shadow_passes = 2 # shadow_size = 4 # position = 20, -309 # halign = center # valign = center # zindex = 0 #} image { monitor = path = size = 75 # lesser side if not 1:1 ratio rounding = 5 # negative values mean circle border_size = 0 rotate = 0 # degrees, counter-clockwise reload_time = 2 reload_cmd = ~/.scripts/playerctlock.sh --arturl position = -195, -365 halign = center valign = center #opacity=0.5 } # PLAYER TITTLE label { monitor = text = cmd[update:0] ~/.scripts/playerctlock.sh --title color = rgba(255, 255, 255, 0.8) font_size = 16 font_family = JetBrains Mono Nerd Font Mono ExtraBold position = 1165, -345 halign = left valign = center } # PLAYER Length label { monitor = text = cmd[update:0] ~/.scripts/playerctlock.sh --duration color = rgba(255, 255, 255, 1) font_size = 14 font_family = JetBrains Mono Nerd Font Mono position = -1020, -370 halign = right valign = center } # PLAYER STATUS label { monitor = text = cmd[update:0] ~/.scripts/playerctlock.sh --status color = rgba(255, 255, 255, 1) font_size = 18 font_family = JetBrains Mono Nerd Font Mono position = -1020, -345 halign = right valign = center } # PLAYER SOURCE label { monitor = text = cmd[update:0] ~/.scripts/playerctlock.sh --source color = rgba(255, 255, 255, 0.6) font_size = 11 font_family = JetBrains Mono Nerd Font Mono position = -1020 -395 halign = right valign = center } # PLAYER Artist label { monitor = text = cmd[update:0] ~/.scripts/playerctlock.sh --artist color = rgba(255, 255, 255, 0.8) font_size = 12 font_family = JetBrains Mono Nerd Font Mono ExtraBold position = 1165, -370 halign = left valign = center } # INPUT FIELD input-field { monitor = size = 350, 75 outline_thickness = 3 outer_color = rgba(0, 0, 0, 1) dots_size = 0.1 # Scale of input-field height, 0.2 - 0.8 dots_spacing = 1 # Scale of dots' absolute size, 0.0 - 1.0 dots_center = true inner_color = rgba(0, 0, 0, 1) font_color = rgba(200, 200, 200, 1) fade_on_empty = false #font_family = JetBrains Mono Nerd Font Mono placeholder_text =  $USER hide_input = false position = 4, -640 halign = center rounding = 10 valign = center zindex = 10 } ```

Compositor 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: ArchBox Release: 6.10.4-arch2-1 Version: #1 SMP PREEMPT_DYNAMIC Sun, 11 Aug 2024 16:19:06 +0000 GPU information: 03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] [1002:731f] (rev c1) (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

When I switch from a 24" to a 27" monitor, I noticed that I could see a bit of my desktop on the right of my monitor when I use hyprlock.

How to reproduce

Use hyprlock on a 27" monitor.

Crash reports, logs, images, videos

swappy-20240815-192811

floork commented 1 week ago

Well I seem to have the same behavior, and it's when the image is too small for the screen (at least for me), when I use an image which is much too small I can see my desktop clearly and without any blur.

DHDcc commented 1 week ago

Well I seem to have the same behavior, and it's when the image is too small for the screen (at least for me), when I use an image which is much too small I can see my desktop clearly and without any blur.

Can it simply stretch the image to fit the monitor size?

floork commented 1 week ago

Well if you only use 1 wallpaper you could add size to the image and scale it up see the wiki, but it would be optimal if hyprlock would implement something that when an image is too small to also have the option to hide the rest in blur, or even better with the color tag over the rest of the screen.

DHDcc commented 1 week ago

Well if you only use 1 wallpaper you could add size to the image and scale it up see the wiki, but it would be optimal if hyprlock would implement something that when an image is too small to also have the option to hide the rest in blur, or even better with the color tag over the rest of the screen.

The size option is only for the image section and not for the background section.

floork commented 5 days ago

Sorry my bad, well as of now I don't really see any way to adjust the size in the lock screen.