-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
210e8f1
commit 9a63e44
Showing
6 changed files
with
415 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
general { | ||
disable_loading_bar=true | ||
grace=300 | ||
hide_cursor=true | ||
no_fade_in=false | ||
} | ||
background { | ||
monitor= | ||
blur_passes=3 | ||
blur_size=8 | ||
path=screenshot | ||
} | ||
input-field { | ||
monitor= | ||
size=200, 50 | ||
dots_center=true | ||
fade_on_empty=false | ||
font_color=rgb(202, 211, 245) | ||
inner_color=rgb(91, 96, 120) | ||
outer_color=rgb(24, 25, 38) | ||
outline_thickness=5 | ||
placeholder_text=<span foreground="##cad3f5">Password...</span> | ||
shadow_passes=2 | ||
position=0, -80 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ ... }: | ||
{ | ||
programs.hyprlock = { | ||
enable = true; | ||
|
||
settings = { | ||
general = { | ||
disable_loading_bar = true; | ||
grace = 300; | ||
hide_cursor = true; | ||
no_fade_in = false; | ||
}; | ||
|
||
background = [ | ||
{ | ||
path = "screenshot"; | ||
blur_passes = 3; | ||
blur_size = 8; | ||
} | ||
]; | ||
|
||
input-field = [ | ||
{ | ||
size = { | ||
width = 200; | ||
height = 50; | ||
}; | ||
position = { | ||
x = 0; | ||
y = -80; | ||
}; | ||
dots_center = true; | ||
fade_on_empty = false; | ||
font_color = "rgb(202, 211, 245)"; | ||
inner_color = "rgb(91, 96, 120)"; | ||
outer_color = "rgb(24, 25, 38)"; | ||
outline_thickness = 5; | ||
placeholder_text = ''<span foreground="##cad3f5">Password...</span>''; | ||
shadow_passes = 2; | ||
} | ||
]; | ||
}; | ||
}; | ||
|
||
nmt.script = '' | ||
assertFileContent \ | ||
home-files/.config/hypr/hyprlock.conf \ | ||
${./basic-configuration.conf} | ||
''; | ||
} |
190 changes: 190 additions & 0 deletions
190
tests/modules/programs/hyprlock/complex-configuration.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
|
||
|
||
general { | ||
disable_loading_bar = true | ||
grace = 300 | ||
hide_cursor = true | ||
no_fade_in = false | ||
no_fade_out = false | ||
ignore_empty_input = false | ||
} | ||
|
||
background { | ||
monitor = | ||
path = screenshot | ||
color = rgba(25, 20, 20, 1.0) | ||
blur_size = 8 | ||
blur_passes = 3 | ||
noise = 0.011700 | ||
contrast = 0.891700 | ||
brightness = 0.817200 | ||
vibrancy = 0.168600 | ||
vibrancy_darkness = 0.050000 | ||
} | ||
|
||
|
||
|
||
|
||
image { | ||
monitor = | ||
path = /home/$USER/.face | ||
size = 120 | ||
rounding = -1 | ||
border_size = 5 | ||
border_color = rgb(202, 211, 245) | ||
rotate = 0.000000 | ||
reload_time = -1 | ||
reload_cmd = | ||
|
||
position = 0, 45 | ||
halign = center | ||
valign = center | ||
} | ||
|
||
|
||
input-field { | ||
monitor = | ||
size = 200, 50 | ||
outline_thickness = 5 | ||
dots_size = 0.330000 | ||
dots_spacing = 0.150000 | ||
dots_center = true | ||
dots_rounding = -1 | ||
outer_color = rgb(24, 25, 38) | ||
inner_color = rgb(91, 96, 120) | ||
font_color = rgb(202, 211, 245) | ||
fade_on_empty = false | ||
fade_timeout = 2000 | ||
placeholder_text = <span foreground="##cad3f5">Password...</span> | ||
hide_input = false | ||
rounding = -1 | ||
shadow_passes = 2 | ||
shadow_size = 3 | ||
shadow_color = rgba(0, 0, 0, 1.0) | ||
shadow_boost = 1.200000 | ||
check_color = rgb(204, 136, 34) | ||
fail_color = rgb(204, 34, 34) | ||
fail_text = <i>$FAIL</i> | ||
fail_transition = 300 | ||
capslock_color = -1 | ||
numlock_color = -1 | ||
bothlock_color = -1 | ||
invert_numlock = false | ||
swap_font_color = false | ||
|
||
position = 0, -80 | ||
halign = center | ||
valign = center | ||
} | ||
|
||
|
||
label { | ||
monitor = | ||
text = <span font_weight="ultrabold">$TIME</span> | ||
text_align = | ||
color = rgb(202, 211, 245) | ||
font_size = 100 | ||
font_family = MonaspiceNe Nerd Font | ||
rotate = 0.000000 | ||
shadow_passes = 2 | ||
shadow_size = 3 | ||
shadow_color = rgba(0, 0, 0, 1.0) | ||
shadow_boost = 1.200000 | ||
|
||
position = 0, 330 | ||
halign = center | ||
valign = center | ||
} | ||
|
||
label { | ||
monitor = | ||
text = <span font_weight="bold"> $USER</span> | ||
text_align = | ||
color = rgb(202, 211, 245) | ||
font_size = 25 | ||
font_family = MonaspiceNe Nerd Font | ||
rotate = 0.000000 | ||
shadow_passes = 1 | ||
shadow_size = 3 | ||
shadow_color = rgba(0, 0, 0, 1.0) | ||
shadow_boost = 1.200000 | ||
|
||
position = 10, 0 | ||
halign = left | ||
valign = top | ||
} | ||
|
||
label { | ||
monitor = | ||
text = <span font_weight="ultrabold"> </span> | ||
text_align = | ||
color = rgb(202, 211, 245) | ||
font_size = 50 | ||
font_family = MonaspiceNe Nerd Font | ||
rotate = 0.000000 | ||
shadow_passes = 1 | ||
shadow_size = 3 | ||
shadow_color = rgba(0, 0, 0, 1.0) | ||
shadow_boost = 1.200000 | ||
|
||
position = 15, -350 | ||
halign = center | ||
valign = center | ||
} | ||
|
||
label { | ||
monitor = | ||
text = <span font_weight="bold">Locked</span> | ||
text_align = | ||
color = rgb(202, 211, 245) | ||
font_size = 25 | ||
font_family = MonaspiceNe Nerd Font | ||
rotate = 0.000000 | ||
shadow_passes = 1 | ||
shadow_size = 3 | ||
shadow_color = rgba(0, 0, 0, 1.0) | ||
shadow_boost = 1.200000 | ||
|
||
position = 0, -430 | ||
halign = center | ||
valign = center | ||
} | ||
|
||
label { | ||
monitor = | ||
text = cmd[update:120000] echo "<span font_weight='bold'>$(date +'%a %d %B')</span>" | ||
text_align = | ||
color = rgb(202, 211, 245) | ||
font_size = 30 | ||
font_family = MonaspiceNe Nerd Font | ||
rotate = 0.000000 | ||
shadow_passes = 1 | ||
shadow_size = 3 | ||
shadow_color = rgba(0, 0, 0, 1.0) | ||
shadow_boost = 1.200000 | ||
|
||
position = 0, 210 | ||
halign = center | ||
valign = center | ||
} | ||
|
||
label { | ||
monitor = | ||
text = <span font_weight="ultrabold"> </span> | ||
text_align = | ||
color = rgb(202, 211, 245) | ||
font_size = 25 | ||
font_family = MonaspiceNe Nerd Font | ||
rotate = 0.000000 | ||
shadow_passes = 1 | ||
shadow_size = 3 | ||
shadow_color = rgba(0, 0, 0, 1.0) | ||
shadow_boost = 1.200000 | ||
|
||
position = 5, 8 | ||
halign = right | ||
valign = bottom | ||
} | ||
|
||
|
||
|
Oops, something went wrong.