Mae various style changes, fixed fetching workspace state from system
This commit is contained in:
1 parent
f6cd33e2fb
commit
a33d8d6ac5
3 files changed
+98
-56
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user