feat: Update lockscreen to not reload image

This commit is contained in:
2025-05-27 15:39:56 +10:00
parent c6b2087533
commit 89dfbfa617
3 changed files with 14 additions and 20 deletions

View File

@@ -22,8 +22,8 @@ export function setWallpaper(wallpaperPath) {
const lockpaperPath = `${directory}lockpaper${extension}`; const lockpaperPath = `${directory}lockpaper${extension}`;
// DELETE ANY OLD IMAGES // DELETE ANY OLD IMAGES
OS.exec(["zsh", "-c", `rm ${directory}lockpaper*`]); //OS.exec(["zsh", "-c", `rm ${directory}lockpaper*`]);
// Create symlink from wallpaper to lockpaper // Create symlink from wallpaper to lockpaper
OS.exec(["zsh", "-c", `ln -s ${wallpaperPath} ${lockpaperPath}`]); //OS.exec(["zsh", "-c", `ln -s ${wallpaperPath} ${lockpaperPath}`]);
OS.exec(["zsh", "-c", `ln -sf ${wallpaperPath} /home/nathan/.config/lockpaper`]); OS.exec(["zsh", "-c", `ln -sf ${wallpaperPath} /home/nathan/.config/lockpaper`]);
} }

View File

@@ -1,5 +1,14 @@
$font=Fira Code $font=Fira Code
auth {
fingerprint {
enabled = true
ready_message = Scan fingerprint to unlock
present_message = Scanning...
retry_delay = 250 # in milliseconds
}
}
# GENERAL # GENERAL
general { general {
hide_cursor = true hide_cursor = true
@@ -14,8 +23,8 @@ animation {
background { background {
path = $HOME/.config/lockpaper path = $HOME/.config/lockpaper
reload_time = 15 #reload_time = 15
reload_cmd = echo $HOME/.config/lockpaper #reload_cmd = echo $HOME/.config/lockpaper
blur_passes = 0 blur_passes = 0
crossfade_time = 1 crossfade_time = 1
} }
@@ -102,15 +111,3 @@ input-field {
halign = left halign = left
valign = center valign = center
} }
# FINGERPRINT
# {
# # monitor = "";
# text = $FPRINTPROMPT
# color = rgb(255, 255, 255)
# font_size = 14;
# font_family = $font;
# position = 0, -107;
# halign = center;
# valign = center;
# }