diff options
author | zachir <zachir@librem.one> | 2024-06-04 22:19:42 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2024-06-04 22:28:28 -0500 |
commit | d7fd8e01f3a49ae1600e601f39f37229f56aa4a8 (patch) | |
tree | 0559d43a999c8c6a05a1bd95671fe785b73544fc /hypr | |
parent | 13ec37a0bd8fdb4b80bfd84e100e3ee4458f2902 (diff) |
Add hypridle and hyprlock configs
Adding in configs for these to replace swayidle and swaylock/waylock.
Diffstat (limited to 'hypr')
-rw-r--r-- | hypr/hypridle.conf | 13 | ||||
-rw-r--r-- | hypr/hyprlock.conf | 55 |
2 files changed, 68 insertions, 0 deletions
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 = <i>Input Password...</i> # 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 = <i>$FAIL <b>($ATTEMPTS)</b></i> # 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 +} + |