From 8c08e83eae3e70ffcb8fc1f847571654a2cabb42 Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 4 Jun 2024 22:19:42 -0500 Subject: Add hypridle and hyprlock configs Adding in configs for these to replace swayidle and swaylock/waylock. --- hypr/hypridle.conf | 13 +++++++++++++ hypr/hyprlock.conf | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 hypr/hypridle.conf create mode 100644 hypr/hyprlock.conf diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf new file mode 100644 index 0000000..9b6ea02 --- /dev/null +++ b/hypr/hypridle.conf @@ -0,0 +1,13 @@ +general { + lock_cmd = hyprlock # dbus/sysd lock command (loginctl lock-session) + unlock_cmd = # same as above, but unlock + before_sleep_cmd = swaylock # command ran before sleep + after_sleep_cmd = # command ran after sleep + ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam) +} + +listener { + timeout = 600 # in seconds + on-timeout = loginctl lock-session # command to run when timeout has passed + on-resume = # command to run when activity is detected after timeout has fired. +} diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf new file mode 100644 index 0000000..84d08ae --- /dev/null +++ b/hypr/hyprlock.conf @@ -0,0 +1,55 @@ +general { + disable_loading_bar = false + hide_cursor = false + grace = 0 + no_fade_in = false + no_fade_out = false + ignore_empty_input = false +} + +background { + monitor = + path = + color = rgba(0, 0, 0, 1.0) + + # all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations + #blur_passes = 0 # 0 disables blurring + #blur_size = 7 + #noise = 0.0117 + #contrast = 0.8916 + #brightness = 0.8172 + #vibrancy = 0.1696 + #vibrancy_darkness = 0.0 +} + +input-field { + monitor = + size = 200, 50 + outline_thickness = 3 + dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8 + dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0 + dots_center = false + dots_rounding = -1 # -1 default circle, -2 follow input-field rounding + outer_color = rgb(151515) + inner_color = rgb(200, 200, 200) + font_color = rgb(10, 10, 10) + fade_on_empty = true + fade_timeout = 1000 # Milliseconds before fade_on_empty is triggered. + placeholder_text = Input 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, -20 + halign = center + valign = center +} + -- cgit v1.2.3