13 lines
469 B
JavaScript
13 lines
469 B
JavaScript
/*
|
|
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}`]);
|
|
}
|