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