From a71c011b545ba8cac957bb2357bc85f372e9af38 Mon Sep 17 00:00:00 2001 From: Oleksandr Smirnov Date: Fri, 13 Jun 2025 15:12:57 +0300 Subject: [PATCH] hypr: setup idle and lock --- config/hypr/hypridle.conf | 9 ++++++ config/hypr/hyprlock.conf | 61 +++++++++++++++++++++++++++++++++++++-- 2 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 config/hypr/hypridle.conf diff --git a/config/hypr/hypridle.conf b/config/hypr/hypridle.conf new file mode 100644 index 0000000..11249d1 --- /dev/null +++ b/config/hypr/hypridle.conf @@ -0,0 +1,9 @@ +general { + lock_cmd = "hyprlock" +} + +listener { + timeout = 300 + on-timeout = "brillo -O; brillo -u 500000 -S 10" + on-resume = "brillo -I -u 250000" +} diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf index addb6ad..c32fcf4 100644 --- a/config/hypr/hyprlock.conf +++ b/config/hypr/hyprlock.conf @@ -1,2 +1,59 @@ -bezier = linear, 1, 1, 0, 0 -animation = fade, 1, 1.8, linear +general { + immediate_render = true + hide_cursor = false +} + +background { + monitor = + blur_passes = 3 + blur_size = 12 + noise = 0.1 + contrast = 1.3 + brightness = 0.2 + vibrancy = 0.5 + vibrancy_darkness = 0.3 +} + +label { + monitor = + text = cmd[update:1000] echo "$(date +'%H %M %S')" + font_size = 300 + font_family = "Adwaita Sans Thin" + + color = rgba(7aa2f7aa) + position = 0%, 2% + + halign = center + valign = center + + shadow_color = rgba(5, 7, 5, 0.1) + shadow_size = 20 + shadow_passes = 2 + shadow_boost = 0.3 +} + + +input-field { + monitor = + size = 300, 50 + valign = "bottom" + position = 0%, 10% + + outline_thickness = 1 + + font_color = rgb(211, 213, 202) + outer_color = rgba(29, 38, 33, 0.6) + inner_color = rgba(15, 18, 15, 0.1) + check_color = rgba(141, 186, 100, 0.5) + fail_color = rgba(229, 90, 79, 0.5) + + placeholder_text = "Enter Password"; + + dots_spacing = 0.2 + dots_center = true + # dots_fade_time = 100 + + shadow_color = rgba(5, 7, 5, 0.1) + shadow_size = 7 + shadow_passes = 2 +}