added hyprlock and hypridle configuration

This commit is contained in:
skyler 2025-05-06 01:22:56 +08:00
parent 2a54f78abd
commit 5385fc6df7
3 changed files with 79 additions and 0 deletions

19
hypridle.conf Normal file
View File

@ -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
}

View File

@ -54,6 +54,8 @@ exec-once = systemctl --user start hyprpolkitagent
exec-once = waybar exec-once = waybar
exec-once = swww exec-once = swww
exec-once = clipse -listen exec-once = clipse -listen
exec-once = waypaper --restore
exec-once = hypridle
############################# #############################
### ENVIRONMENT VARIABLES ### ### ENVIRONMENT VARIABLES ###

58
hyprlock.conf Normal file
View File

@ -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 = <i><span foreground="##cdd6f4">Input Password...</span></i>
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
}