hyprlock: use material colors + minor layout change

This commit is contained in:
end-4 2025-03-16 18:20:40 +01:00
parent 6e1f61ea76
commit 4ec9404110
2 changed files with 42 additions and 80 deletions

View file

@ -1,21 +1,17 @@
# $text_color = rgba({{ $onBackground }}FF)
# $entry_background_color = rgba({{ $background }}11)
# $entry_border_color = rgba({{ $outline }}55)
# $entry_color = rgba({{ $onSurfaceVariant }}FF)
$text_color = rgba(FFFFFFFF)
$entry_background_color = rgba(33333311)
$entry_border_color = rgba(3B3B3B55)
$entry_color = rgba(FFFFFFFF)
$text_color = rgba({{ $primaryFixed }}FF)
$entry_background_color = rgba({{ $onPrimaryFixed }}11)
$entry_border_color = rgba({{ $outline }}55)
$entry_color = rgba({{ $primaryFixed }}FF)
$font_family = Rubik Light
$font_family_clock = Rubik Light
$font_material_symbols = Material Symbols Rounded
background {
# color = rgba({{ $surfaceContainerLowest }}FF)
color = rgba(000000FF)
color = rgba(181818FF)
# path = {{ SWWW_WALL }}
# path = screenshot
# blur_size = 5
# blur_size = 15
# blur_passes = 4
}
input-field {
@ -27,7 +23,7 @@ input-field {
outer_color = $entry_border_color
inner_color = $entry_background_color
font_color = $entry_color
# fade_on_empty = true
fade_on_empty = true
position = 0, 20
halign = center
@ -37,8 +33,6 @@ input-field {
label { # Clock
monitor =
text = $TIME
shadow_passes = 1
shadow_boost = 0.5
color = $text_color
font_size = 65
font_family = $font_family_clock
@ -47,42 +41,31 @@ label { # Clock
halign = center
valign = center
}
label { # Greeting
label { # Date
monitor =
text = hi $USER !!!
shadow_passes = 1
shadow_boost = 0.5
text = cmd[update:5000] date +"%A, %B %d"
color = $text_color
font_size = 20
font_size = 17
font_family = $font_family
position = 0, 240
halign = center
valign = center
}
label { # lock icon
monitor =
text = lock
shadow_passes = 1
shadow_boost = 0.5
color = $text_color
font_size = 21
font_family = $font_material_symbols
position = 0, 65
halign = center
valign = bottom
}
label { # "locked" text
label { # User
monitor =
text = locked
shadow_passes = 1
shadow_boost = 0.5
text =  $USER
color = $text_color
font_size = 14
shadow_passes = 1
shadow_boost = 0.35
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
font_size = 20
font_family = $font_family
position = 0, 45
position = 0, 50
halign = center
valign = bottom
}
@ -90,8 +73,6 @@ label { # "locked" text
label { # Status
monitor =
text = cmd[update:5000] ${XDG_CONFIG_HOME:-$HOME/.config}/hypr/hyprlock/status.sh
shadow_passes = 1
shadow_boost = 0.5
color = $text_color
font_size = 14
font_family = $font_family

61
.config/hypr/hyprlock.conf Normal file → Executable file
View file

@ -1,21 +1,17 @@
# $text_color = rgba(E3E1EFFF)
# $entry_background_color = rgba(12131C11)
# $entry_border_color = rgba(908F9F55)
# $entry_color = rgba(C6C5D6FF)
$text_color = rgba(FFFFFFFF)
$entry_background_color = rgba(33333311)
$entry_border_color = rgba(3B3B3B55)
$entry_color = rgba(FFFFFFFF)
$text_color = rgba(FFDAD6FF)
$entry_background_color = rgba(41000311)
$entry_border_color = rgba(896E6C55)
$entry_color = rgba(FFDAD6FF)
$font_family = Rubik Light
$font_family_clock = Rubik Light
$font_material_symbols = Material Symbols Rounded
background {
# color = rgba(0D0D17FF)
color = rgba(000000FF)
color = rgba(181818FF)
# path = {{ SWWW_WALL }}
# path = screenshot
# blur_size = 5
# blur_size = 15
# blur_passes = 4
}
input-field {
@ -27,7 +23,7 @@ input-field {
outer_color = $entry_border_color
inner_color = $entry_background_color
font_color = $entry_color
# fade_on_empty = true
fade_on_empty = true
position = 0, 20
halign = center
@ -37,8 +33,6 @@ input-field {
label { # Clock
monitor =
text = $TIME
shadow_passes = 1
shadow_boost = 0.5
color = $text_color
font_size = 65
font_family = $font_family_clock
@ -47,42 +41,31 @@ label { # Clock
halign = center
valign = center
}
label { # Greeting
label { # Date
monitor =
text = hi $USER !!!
shadow_passes = 1
shadow_boost = 0.5
text = cmd[update:5000] date +"%A, %B %d"
color = $text_color
font_size = 20
font_size = 17
font_family = $font_family
position = 0, 240
halign = center
valign = center
}
label { # lock icon
monitor =
text = lock
shadow_passes = 1
shadow_boost = 0.5
color = $text_color
font_size = 21
font_family = $font_material_symbols
position = 0, 65
halign = center
valign = bottom
}
label { # "locked" text
label { # User
monitor =
text = locked
shadow_passes = 1
shadow_boost = 0.5
text =  $USER
color = $text_color
font_size = 14
shadow_passes = 1
shadow_boost = 0.35
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
font_size = 20
font_family = $font_family
position = 0, 45
position = 0, 50
halign = center
valign = bottom
}
@ -90,8 +73,6 @@ label { # "locked" text
label { # Status
monitor =
text = cmd[update:5000] ${XDG_CONFIG_HOME:-$HOME/.config}/hypr/hyprlock/status.sh
shadow_passes = 1
shadow_boost = 0.5
color = $text_color
font_size = 14
font_family = $font_family