Mae various style changes, fixed fetching workspace state from system

This commit is contained in:
pascalyazid committed 2026-03-26 01:04:07 +01:00
1 parent f6cd33e2fb
commit a33d8d6ac5
3 files changed
+98 -56

No files matched your search

+7
View File
@@ -127,6 +127,13 @@ export async function setTheme(wallpaperPath: string) {
try {
// -q: quiet, -i: image, -n: skip setting wallpaper (hyprpaper does it)
await execAsync(`wal -q -n -i "${wallpaperPath}"`)
// Add this line so hyprlock always knows the current wallpaper:
await execAsync([
"cp",
wallpaperPath,
`${HOME}/.cache/current_wallpaper.jpg`,
])
} catch (error) {
console.error("Failed to generate colors with pywal:", error)
}