From 5385fc6df734a21890c18502ad5495ae09a709b1 Mon Sep 17 00:00:00 2001 From: skyler Date: Tue, 6 May 2025 01:22:56 +0800 Subject: [PATCH] added hyprlock and hypridle configuration --- hypridle.conf | 19 +++++++++++++++++ hyprland.conf | 2 ++ hyprlock.conf | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 hypridle.conf create mode 100644 hyprlock.conf diff --git a/hypridle.conf b/hypridle.conf new file mode 100644 index 0000000..d442a17 --- /dev/null +++ b/hypridle.conf @@ -0,0 +1,19 @@ +general { + lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances. + before_sleep_cmd = loginctl lock-session # lock before suspend. + after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. +} + + +listener { + timeout = 180 + on-timeout = loginctl lock-session +} + +listener { + timeout = 200 + on-timeout = hyprctl dispatch dpms off + on-resume = hyprctl dispatch dpms on +} + + diff --git a/hyprland.conf b/hyprland.conf index fb9c03b..e9643e8 100644 --- a/hyprland.conf +++ b/hyprland.conf @@ -54,6 +54,8 @@ exec-once = systemctl --user start hyprpolkitagent exec-once = waybar exec-once = swww exec-once = clipse -listen +exec-once = waypaper --restore +exec-once = hypridle ############################# ### ENVIRONMENT VARIABLES ### diff --git a/hyprlock.conf b/hyprlock.conf new file mode 100644 index 0000000..f9418e0 --- /dev/null +++ b/hyprlock.conf @@ -0,0 +1,58 @@ +background { + monitor = + path = ~/Pictures/Wallpaper/Hate-Chan.jpg +} + +general { + no_fade_in = false + no_fade_out = false + hide_cursor = true + grace = 2 + disable_loading_bar = true +} + +input-field { + monitor = + size = 250,40 + outline_thickness = 2 + dots_size = 0.2 + dots_spacing = 0.35 + dots_center = true + outer_color = rgba(0,0,0,0) + inner_color = rgba(0,0,0,0.2) + font_color = rgba(255,255,255,1) + fade_on_empty = false + rounding = -1 + check_color = rgb(204,136,34) + placeholder_text = Input Password... + hide_input = false + position = 0, -200 + halign = center + valign = center +} + +label { + monitor = + text = cmd[update:1000] echo "$(date +"%A, %B %d")" + color = rgba(255,255,255,0.75) + font_size = 128 + font_family = Fira Code + position = 0, -240 + halign = center + valign = center +} + +label { + monitor = + text = cmd[update:1000] echo "$(date +"%-I:%M")" + color = rgba(255,255,255,0.75) + font_size = 128 + font_family = Fira Code + position = 0,-265 + halign = center + valign = center +} + + + +