feat: Add WallRizz

This commit is contained in:
2025-04-19 17:06:14 +10:00
parent 950fc54fb4
commit 53ca01cd68
7 changed files with 22 additions and 15 deletions

View File

@@ -0,0 +1,12 @@
/*
For: hyprpaper, https://github.com/hyprwm/hyprpaper
Author: https://github.com/5hubham5ingh
Prerequisite: hyprpaper daemon should be running
Changes: Set to change wallpaper on all screens
*/
export function setWallpaper(wallpaperPath) {
OS.exec(["hyprctl", "-q", "hyprpaper unload all"]);
OS.exec(["hyprctl", "-q", `hyprpaper preload ${wallpaperPath}`]);
OS.exec(["hyprctl", "-q", `hyprpaper wallpaper ,${wallpaperPath}`]);
}