updated hyprlock

This commit is contained in:
wt
2026-08-12 16:52:22 +07:00
parent 7eb645ed10
commit 27876ccbec
3 changed files with 243 additions and 237 deletions
+87 -134
View File
@@ -1,150 +1,103 @@
general {
immediate_render = true
}
background {
monitor =
path = /home/tola/Pictures/wallpaper/robert-lukeman-zNN6ubHmruI-unsplash.jpg
path = /home/tola/Pictures/wallpaper/photo_2025-11-04_16-15-57.jpg
color = rgba(25, 20, 20, 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 = 2
noise = 0
contrast = 0
brightness = 0
vibrancy = 0
blur_passes = 3
blur_size = 3
noise = 0.0117
contrast = 0.8916
brightness = 0.5
vibrancy = 0.0
vibrancy_darkness = 0.0
}
input-field {
monitor =
size = 300, 30
outline_thickness = 0
dots_size = 0.25 # Scale of input-field height, 0.2 - 0.8
dots_spacing = 0.55 # Scale of dots' absolute size, 0.0 - 1.0
dots_center = true
dots_rounding = -1
outer_color = rgba(242, 243, 244, 0)
inner_color = rgba(242, 243, 244, 0)
font_color = rgba(242, 243, 244, 0.75)
fade_on_empty = false
placeholder_text = # Text rendered in the input box when it's empty.
hide_input = false
check_color = rgba(204, 136, 34, 0)
fail_color = rgba(204, 34, 34, 0) # if authentication failed, changes outer_color and fail message color
fail_text = $FAIL <b>($ATTEMPTS)</b> # 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, -468
halign = center
valign = center
general {
no_fade_in = false
grace = 0
disable_loading_bar = false
ignore_empty_input = true
# hide_cursor = true
}
label {
monitor =
text = cmd[update:1000] echo "$(~/dotfiles/hypr/bin/hyprlock/song-status)"
color = rgba(242, 243, 244, 0.75)
font_size = 14
font_family = SF Pro Text
position = 20, 700
halign = left
valign = center
animations {
animation = fade, 1, 6, default
animation = fadeIn, 1, 6, default
animation = fadeOut, 1, 6, default
}
label {
monitor =
text = cmd[update:1000] echo "$(~/dotfiles/hypr/bin/hyprlock/network-status)‎"
color = rgba(242, 243, 244, 0.75)
font_size = 16
font_family = SF Pro Text
position = -35, 700
halign = right
valign = center
}
label {
monitor =
text = cmd[update:1000] echo "$(~/dotfiles/hypr/bin/hyprlock/battery-status)‎"
color = rgba(242, 243, 244, 0.75)
font_size = 19
font_family = SF Pro Text
position = -93, 700
halign = right
valign = center
}
label {
monitor =
text = cmd[update:1000] echo "$(~/dotfiles/hypr/bin/hyprlock/layout-status)‎"
color = rgba(242, 243, 244, 0.75)
font_size = 15
font_family = SF Pro Text
position = -150, 700
halign = right
valign = center
}
label {
monitor =
text = cmd[update:1000] echo "$(date +"%A, %B %d")"
color = rgba(242, 243, 244, 0.75)
font_size = 20
font_family = SF Pro Display Bold
position = 0, 405
halign = center
valign = center
}
label {
monitor =
text = cmd[update:1000] echo "$(date +"%k:%M")"
color = rgba(242, 243, 244, 0.75)
font_size = 93
font_family = SF Pro Display Bold
position = 0, 310
halign = center
valign = center
}
label {
monitor =
text = WT
color = rgba(242, 243, 244, 0.75)
font_size = 12
font_family = SF Pro Display Bold
position = 0, -407
halign = center
valign = center
}
label {
monitor =
text = Touch ID or Enter Password
color = rgba(242, 243, 244, 0.75)
font_size = 10
font_family = SF Pro Display
position = 0, -438
halign = center
valign = center
}
image {
monitor =
path = ~/dotfiles/hypr/pictures/user.jpeg
border_color = 0xffdddddd
border_size = 0
size = 73
path = ~/dotfiles/hypr/pictures/user.jpeg
border_size = 2
border_color = rgba(255, 255, 255, 0)
size = 200
rounding = -1
rotate = 0
reload_time = -1
reload_cmd =
position = 0, -353
position = 0, 40
halign = center
valign = center
}
label {
monitor =
text = cmd[update:1000] echo "<span foreground='##ffffff'>$(date +"%A %d %B %Y")</span>"
color = rgba(200, 200, 200, 1.0)
font_size = 25
font_family = JetBrainsMonoNerd Font Mono Bold
position = 0, 350
halign = center
valign = center
}
label {
monitor =
text = cmd[update:1000] echo "<span foreground='##ffffff'>$(date +"%H:%M")</span>"
color = rgba(200, 200, 200, 1.0)
font_size = 120
font_family = JetBrainsMonoNerd Font Mono Bold
position = 0, 250
halign = center
valign = center
}
shape {
monitor =
size = 256, 48
color = rgba(0, 0, 0, 1)
rounding = -1
border_size = 0
border_color = rgba(0, 0, 0, 1)
rotate = 0
xray = false
position = 0, -130
halign = center
valign = center
}
label {
monitor =
text = cmd[update:1000] echo " $USER@$(hostname)"
color = rgba(216, 222, 233, 0.80)
#outline_thickness = 2
#dots_size = 0.2
#dots_spacing = 0.2
#dots_center = true
font_size = 18
font_family = JetBrainsMonoNerd Font Mono Bold
position = 0, -130
halign = center
valign = center
}
input-field {
monitor =
size = 256, 48
outline_thickness = 0
dots_size = 0.2
dots_spacing = 0.5
dots_center = true
outer_color = rgba(0, 0, 0, 0)
inner_color = rgba(0, 0, 0, 1)
font_color = rgb(200, 200, 200)
fade_on_empty = false
font_family = JetBrainsMonoNerd Font Mono Bold
placeholder_text = <i><span foreground="##ffffff99">Enter Pass</span></i>
hide_input = false
position = 0, -210
halign = center
valign = center
}
-103
View File
@@ -1,103 +0,0 @@
background {
monitor =
path = /home/tola/Pictures/wallpaper/pexels-sebastiaan9977-1097456.jpg
color = rgba(25, 20, 20, 1.0)
blur_passes = 3
blur_size = 3
noise = 0.0117
contrast = 0.8916
brightness = 0.5
vibrancy = 0.0
vibrancy_darkness = 0.0
}
general {
no_fade_in = false
grace = 0
disable_loading_bar = false
ignore_empty_input = true
# hide_cursor = true
}
animations {
animation = fade, 1, 6, default
animation = fadeIn, 1, 6, default
animation = fadeOut, 1, 6, default
}
image {
monitor =
path = ~/dotfiles/hypr/pictures/user.jpeg
border_size = 2
border_color = rgba(255, 255, 255, 0)
size = 200
rounding = -1
rotate = 0
reload_time = -1
reload_cmd =
position = 0, 40
halign = center
valign = center
}
label {
monitor =
text = cmd[update:1000] echo "<span foreground='##ffffff'>$(date +"%A %d %B %Y")</span>"
color = rgba(200, 200, 200, 1.0)
font_size = 25
font_family = JetBrainsMonoNerd Font Mono Bold
position = 0, 350
halign = center
valign = center
}
label {
monitor =
text = cmd[update:1000] echo "<span foreground='##ffffff'>$(date +"%H:%M")</span>"
color = rgba(200, 200, 200, 1.0)
font_size = 120
font_family = JetBrainsMonoNerd Font Mono Bold
position = 0, 250
halign = center
valign = center
}
shape {
monitor =
size = 256, 48
color = rgba(0, 0, 0, 1)
rounding = -1
border_size = 0
border_color = rgba(0, 0, 0, 1)
rotate = 0
xray = false
position = 0, -130
halign = center
valign = center
}
label {
monitor =
text = cmd[update:1000] echo " $USER@$(hostname)"
color = rgba(216, 222, 233, 0.80)
#outline_thickness = 2
#dots_size = 0.2
#dots_spacing = 0.2
#dots_center = true
font_size = 18
font_family = JetBrainsMonoNerd Font Mono Bold
position = 0, -130
halign = center
valign = center
}
input-field {
monitor =
size = 256, 48
outline_thickness = 0
dots_size = 0.2
dots_spacing = 0.5
dots_center = true
outer_color = rgba(0, 0, 0, 0)
inner_color = rgba(0, 0, 0, 1)
font_color = rgb(200, 200, 200)
fade_on_empty = false
font_family = JetBrainsMonoNerd Font Mono Bold
placeholder_text = <i><span foreground="##ffffff99">Enter Pass</span></i>
hide_input = false
position = 0, -210
halign = center
valign = center
}
+156
View File
@@ -0,0 +1,156 @@
general {
immediate_render = true
}
background {
monitor =
path = /home/tola/Pictures/wallpaper/neon_office.jpg
color = rgba(25, 20, 20, 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 = 2
noise = 0
contrast = 0
brightness = 0
vibrancy = 0
vibrancy_darkness = 0.0
}
animations {
animation = fade, 1, 6, default
animation = fadeIn, 1, 6, default
animation = fadeOut, 1, 6, default
}
input-field {
monitor =
size = 300, 30
outline_thickness = 0
dots_size = 0.25 # Scale of input-field height, 0.2 - 0.8
dots_spacing = 0.55 # Scale of dots' absolute size, 0.0 - 1.0
dots_center = true
dots_rounding = -1
outer_color = rgba(242, 243, 244, 0)
inner_color = rgba(242, 243, 244, 0)
font_color = rgba(242, 243, 244, 0.75)
fade_on_empty = false
placeholder_text = # Text rendered in the input box when it's empty.
hide_input = false
check_color = rgba(204, 136, 34, 0)
fail_color = rgba(204, 34, 34, 0) # if authentication failed, changes outer_color and fail message color
fail_text = $FAIL <b>($ATTEMPTS)</b> # 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, -468
halign = center
valign = center
}
label {
monitor =
text = cmd[update:1000] echo "$(~/dotfiles/hypr/bin/hyprlock/song-status)"
color = rgba(242, 243, 244, 0.75)
font_size = 14
font_family = SF Pro Text
position = 20, 700
halign = left
valign = center
}
label {
monitor =
text = cmd[update:1000] echo "$(~/dotfiles/hypr/bin/hyprlock/network-status)‎"
color = rgba(242, 243, 244, 0.75)
font_size = 16
font_family = SF Pro Text
position = -35, 700
halign = right
valign = center
}
label {
monitor =
text = cmd[update:1000] echo "$(~/dotfiles/hypr/bin/hyprlock/battery-status)‎"
color = rgba(242, 243, 244, 0.75)
font_size = 19
font_family = SF Pro Text
position = -93, 700
halign = right
valign = center
}
label {
monitor =
text = cmd[update:1000] echo "$(~/dotfiles/hypr/bin/hyprlock/layout-status)‎"
color = rgba(242, 243, 244, 0.75)
font_size = 15
font_family = SF Pro Text
position = -150, 700
halign = right
valign = center
}
label {
monitor =
text = cmd[update:1000] echo "$(date +"%A, %B %d")"
color = rgba(242, 243, 244, 0.75)
font_size = 20
font_family = SF Pro Display Bold
position = 0, 405
halign = center
valign = center
}
label {
monitor =
text = cmd[update:1000] echo "$(date +"%k:%M")"
color = rgba(242, 243, 244, 0.75)
font_size = 93
font_family = SF Pro Display Bold
position = 0, 310
halign = center
valign = center
}
label {
monitor =
text = WT
color = rgba(242, 243, 244, 0.75)
font_size = 12
font_family = SF Pro Display Bold
position = 0, -407
halign = center
valign = center
}
label {
monitor =
text = Touch ID or Enter Password
color = rgba(242, 243, 244, 0.75)
font_size = 10
font_family = SF Pro Display
position = 0, -438
halign = center
valign = center
}
image {
monitor =
path = ~/dotfiles/hypr/pictures/user.jpeg
border_color = 0xffdddddd
border_size = 0
size = 73
rounding = -1
rotate = 0
reload_time = -1
reload_cmd =
position = 0, -353
halign = center
valign = center
}