Add option for generation of pywal colors with wallpaper change (#219)
* Add option for generation of pywal colors with wallpaper change * Update README.md * Address review
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import icons from "lib/icons";
|
||||
import { Notify, isAnImage } from "lib/utils";
|
||||
import { bash, dependencies, Notify, isAnImage } from "lib/utils";
|
||||
import options from "options";
|
||||
import Wallpaper from "services/Wallpaper";
|
||||
|
||||
@@ -50,6 +50,10 @@ export const initializeTrackers = (resetCssFunc: Function) => {
|
||||
options.resetTheme();
|
||||
resetCssFunc();
|
||||
}
|
||||
if (options.wallpaper.pywal.value && dependencies('wal')) {
|
||||
const wallpaperPath = options.wallpaper.image.value;
|
||||
bash(`wal -i ${wallpaperPath}`);
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user