feat: add hyprlock & hypridle

This commit is contained in:
DACHXY 2025-01-03 22:37:31 +08:00
parent 43bb08b86d
commit e1af19001f
14 changed files with 233 additions and 57 deletions

BIN
home/config/.face Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

View file

@ -0,0 +1,93 @@
$font = CaskaydiaCove Nerd Font
$font2 = SF Pro Display Bold
background {
monitor =
path = screenshot
blur_passes = 3
blur_size = 8
contrast = 0.8916
brightness = 0.8172
vibrancy = 0.1696
vibrancy_darkness = 0.0
}
# GENERAL
general {
no_fade_in = false
grace = 0
disable_loading_bar = false
}
# TIME
label {
monitor =
text = cmd[update:1000] echo "$(date +"%-I:%M%p")"
color = rgba(250, 189, 47, .75)
font_size = 120
font_family = $font2
position = 0, -140
halign = center
valign = top
}
# DAY-DATE-MONTH
label {
monitor =
text = cmd[update:1000] echo "<span>$(date '+%A, %d %B')</span>"
color = rgba(225, 225, 225, 0.75)
font_size = 30
font_family = $font2
position = 0, 200
halign = center
valign = center
}
# LOGO
image {
monitor =
path = $HOME/.face
border_size = 2
border_color = rgba(255, 255, 255, .75)
size = 95
rounding = -1
rotate = 0
reload_time = -1
reload_cmd =
position = 0, 60
halign = center
valign = center
}
# USER
label {
monitor =
text = Hello, $USER
color = rgba(255, 255, 255, .65)
font_size = 25
font_family = $font2
position = 0, -70
halign = center
valign = center
}
# INPUT FIELD
input-field {
monitor =
size = 290, 60
outline_thickness = 2
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0
dots_center = true
outer_color = rgba(0, 0, 0, 0)
inner_color = rgba(60, 56, 54, 0.35)
font_color = rgb(200, 200, 200)
fade_on_empty = false
font_family = $font2
placeholder_text = <i><span foreground="##ffffff99">Bruh, come back!</span></i>
hide_input = false
position = 0, -140
halign = center
valign = center
}

View file

@ -1,4 +0,0 @@
timeout 300 'if pgrep swaylock; then hyprctl dispatch dpms off; fi'
resume 'hyprctl dispatch dpms on'
timeout 420 'systemctl suspend'
before-sleep 'swaylock'

View file

@ -1,31 +0,0 @@
daemonize
indicator
clock
screenshots
effect-blur=11x11
font=JetBrains Mono
indicator-radius=80
indicator-thickness=8
timestr=%I:%M %p
datestr=%F
inside-color=#181926
ring-color=#8bd5ca
key-hl-color=#a6da95
text-color=#cad3f5
layout-text-color=#cad3f5
layout-bg-color=#181926
text-caps-lock-color=#cad3f5
inside-clear-color=#f4dbd6
ring-clear-color=#f0c6c6
text-clear-color=#1e2030
inside-ver-color=#91d7e3
ring-ver-color=#7dc4e4
text-ver-color=#1e2030
inside-wrong-color=#ee99a0
ring-wrong-color=#ed8796
text-wrong-color=#1e2030

View file

@ -1,6 +1,6 @@
{
"label" : "lock",
"action" : "swaylock",
"action" : "hyprlock",
"text" : "Lock",
"keybind" : "l"
}