wallchpaper
Version:
Change wallpaper after an adjustable time
14 lines • 457 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const child_process_1 = require("child_process");
class System {
constructor() {
this.command = 'gsettings';
this.arguments = ['set', 'org.gnome.desktop.background', 'picture-uri'];
}
setWallpaper(filePath) {
child_process_1.spawn(this.command, [...this.arguments, filePath]);
}
}
exports.System = System;
//# sourceMappingURL=system.js.map