From 672a5975acf7fab31156164f5e5b6762fe55eba1 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 30 Apr 2024 12:27:15 +0900 Subject: [PATCH] hyprlock update to work well with 1080p resolution --- config/hypr/hyprlock.conf | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf index 7cf48eb..b2a1a16 100644 --- a/config/hypr/hyprlock.conf +++ b/config/hypr/hyprlock.conf @@ -4,26 +4,19 @@ source = $HOME/.cache/wal/colors-hyprland -# wallpaper and picture variables # supports png, jpg, webp (no animations, though) -$wallpaper = $HOME/.config/rofi/.current_wallpaper - -# you can put your profile picture path here if wanted -# by default is your current wallpaper. See note above regarding format support -$picture = $HOME/.config/rofi/.current_wallpaper - general { - grace = 0 + grace = 1 } background { monitor = path = screenshot # screenshot of your desktop - #path = $wallpaper # set the picture path above + # path = $HOME/.config/rofi/.current_wallpaper # NOTE only png supported for now color = $color7 # all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations blur_size = 4 - blur_passes = 3 # 0 disables blurring + blur_passes = 2 # 0 disables blurring noise = 0.0117 contrast = 1.3000 # Vibrant!!! brightness = 0.8000 @@ -45,7 +38,7 @@ input-field { placeholder_text = Password... # Text rendered in the input box when it's empty. hide_input = false - position = 0, 100 + position = 0, 200 halign = center valign = bottom } @@ -71,7 +64,7 @@ label { font_size = 24 font_family = JetBrains Mono Nerd Font 10 - position = 0, -225 + position = 0, -250 halign = center valign = top } @@ -82,10 +75,10 @@ label { # text = cmd[update:1000] echo " $(date +"%I:%M:%S %p") " # AM/PM text = cmd[update:1000] echo " $(date +"%H:%M:%S") " # 24H color = $color7 - font_size = 90 + font_size = 94 font_family = JetBrains Mono Nerd Font 10 - position = 0, -150 + position = 0, 0 halign = center valign = center } @@ -94,10 +87,10 @@ label { monitor = text =  $USER color = $color7 - font_size = 24 + font_size = 18 font_family = Inter Display Medium - position = 0, 200 + position = 0, 100 halign = center valign = bottom } @@ -126,14 +119,14 @@ label { image { monitor = - path = $picture # set the picture path above + path = $HOME/.config/rofi/.current_wallpaper size = 230 - rounding = -1 # negative values mean circle - border_size = 1 + rounding = -1 + border_size = 4 border_color = $color12 rotate = 0 reload_time = -1 - position = 0, 200 + position = 0, 300 halign = center - valign = center + valign = bottom } \ No newline at end of file