feat: Add WallRizz
This commit is contained in:
12
.config/WallRizz/hyprpaper@5hubham5ingh.js
Normal file
12
.config/WallRizz/hyprpaper@5hubham5ingh.js
Normal 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}`]);
|
||||
}
|
||||
Reference in New Issue
Block a user