hyprlock: add blur

let's hope no one locks while using dark theme but have white stuff open
This commit is contained in:
end-4
2024-02-22 13:22:25 +07:00
parent f00e3224ed
commit acf9a3bc82
3 changed files with 21 additions and 6 deletions
@@ -11,6 +11,12 @@ colorstrings=''
colorlist=()
colorvalues=()
# wallpath=$(swww query | awk -F 'image: ' '{print $2}')
# wallpath_png="$HOME"'/.cache/ags/user/generated/hypr/lockscreen.png'
# convert "$wallpath" "$wallpath_png"
# wallpath_png=$(echo "$wallpath_png" | sed 's/\//\\\//g')
# wallpath_png=$(sed 's/\//\\\\\//g' <<< "$wallpath_png")
if [[ "$1" = "--bad-apple" ]]; then
cp scripts/color_generation/specials/_material_badapple.scss scss/_material.scss
colornames=$(cat scripts/color_generation/specials/_material_badapple.scss | cut -d: -f1)
@@ -146,6 +152,7 @@ apply_hyprlock() {
mkdir -p "$HOME"/.cache/ags/user/generated/hypr/
cp "scripts/templates/hypr/hyprlock.conf" "$HOME"/.cache/ags/user/generated/hypr/hyprlock.conf
# Apply colors
# sed -i "s/{{ SWWW_WALL }}/${wallpath_png}/g" "$HOME"/.cache/ags/user/generated/hypr/hyprlock.conf
for i in "${!colorlist[@]}"; do
sed -i "s/{{ ${colorlist[$i]} }}/${colorvalues[$i]#\#}/g" "$HOME"/.cache/ags/user/generated/hypr/hyprlock.conf
done
@@ -1,18 +1,22 @@
$text_color = rgba({{ $onBackground }}FF)
$entry_background_color = rgba({{ $background }}11)
$entry_border_color = rgba({{ $outline }}44)
$entry_border_color = rgba({{ $outline }}55)
$entry_color = rgba({{ $onSurfaceVariant }}FF)
$font_family = Gabarito
$font_family_clock = Gabarito
$font_material_symbols = Material Symbols Rounded
background {
color = rgba({{ $background }}F8)
color = rgba({{ $background }}77)
# path = {{ SWWW_WALL }}
path = screenshot
blur_size = 5
blur_passes = 4
}
input-field {
monitor =
size = 250, 50
outline_thickness = 1
outline_thickness = 2
dots_size = 0.1
dots_spacing = 0.3
outer_color = $entry_border_color
+7 -3
View File
@@ -1,18 +1,22 @@
$text_color = rgba(eae0e4FF)
$entry_background_color = rgba(120F1111)
$entry_border_color = rgba(9a8d9544)
$entry_border_color = rgba(9a8d9555)
$entry_color = rgba(d1c2cbFF)
$font_family = Gabarito
$font_family_clock = Gabarito
$font_material_symbols = Material Symbols Rounded
background {
color = rgba(120F11F8)
color = rgba(120F1177)
# path = {{ SWWW_WALL }}
path = screenshot
blur_size = 5
blur_passes = 4
}
input-field {
monitor =
size = 250, 50
outline_thickness = 1
outline_thickness = 2
dots_size = 0.1
dots_spacing = 0.3
outer_color = $entry_border_color