From 16221d540806a9b3bbb3ba46d7db17d6d1dfa31e Mon Sep 17 00:00:00 2001 From: GeorgeSG Date: Sat, 6 Jul 2024 15:44:05 +0300 Subject: [PATCH] Add hyprlock --- home/.config/hypr/binds.conf | 1 + home/.config/hypr/hyprlock.conf | 87 +++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 home/.config/hypr/hyprlock.conf diff --git a/home/.config/hypr/binds.conf b/home/.config/hypr/binds.conf index c916ee5..1f117cb 100644 --- a/home/.config/hypr/binds.conf +++ b/home/.config/hypr/binds.conf @@ -14,6 +14,7 @@ bind = alt, Q, killactive bind = $mainMod, M, exit, bind = $mainMod, E, exec, $fileManager bind = $mainMod, V, togglefloating, +bind = $mainMod, L, exec, hyprlock bind = alt, space, exec, $menu --class=floatingTerm bind = alt win shift, e, exec, $emojiMenu # bind = $mainMod, P, pseudo, # dwindle diff --git a/home/.config/hypr/hyprlock.conf b/home/.config/hypr/hyprlock.conf new file mode 100644 index 0000000..441fba9 --- /dev/null +++ b/home/.config/hypr/hyprlock.conf @@ -0,0 +1,87 @@ + +background { + monitor = DP-2 + path = $HOME/Pictures/lock-4.png # only png supported for now + blur_passes = 3 + blur_size = 2 + brightness = 0.8 +} + +background { + monitor = DP-1 + path = $HOME/Pictures/lock-3.png # only png supported for now + blur_passes = 3 + blur_size = 2 + brightness = 0.8 +} + +input-field { + monitor = + size = 200, 50 + outline_thickness = 3 + dots_size = 0.15 # 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 + dots_rounding = -1 # -1 default circle, -2 follow input-field rounding + outer_color = rgb(cccccc) + inner_color = rgb(FFFFFF) + font_color = rgb(10, 10, 10) + fade_on_empty = true + fade_timeout = 1000 # Milliseconds before fade_on_empty is triggered. + placeholder_text = enter 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_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, -180 + halign = center + valign = center +} + +label { + monitor = + #clock + text = cmd[update:1000] echo "$TIME" + color = rgba(200, 200, 200, 1.0) + font_size = 55 + font_family = CaskaydiaCode Nerd Font Bold + position = -100, -40 + halign = right + valign = bottom + shadow_passes = 5 + shadow_size = 10 +} + +label { + monitor = + text = $USER + color = rgba(200, 200, 200, 1.0) + font_size = 20 + font_family = FiraCode Nerd Font Bold + position = -100, 160 + halign = right + valign = bottom + shadow_passes = 5 + shadow_size = 10 +} + +image { + monitor = + path = $HOME/Pictures/avatar/avatar-sq-800.png + size = 200 # lesser side if not 1:1 ratio + rounding = -1 # negative values mean circle + border_size = 4 + border_color = rgb(221, 221, 221) + rotate = 0 # degrees, counter-clockwise + reload_time = -1 # seconds between reloading, 0 to reload with SIGUSR2 + position = 0, 0 + halign = center + valign = center +}