1
Fork 0

Documentation!

This commit is contained in:
Bauke 2023-08-05 14:37:39 +02:00
parent 9c5270d99e
commit eb2fb44ea5
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 2 additions and 0 deletions

View File

@ -41,12 +41,14 @@ async function main(): Promise<void> {
}
}
/** Download the given URL and output it to {@linkcode imagePath}. */
async function downloadImage(url: string): Promise<void> {
await runCommand("curl", {
args: ["-fsLS", url, "-o", imagePath],
});
}
/** Run `xfce4-desktop` and set the background wallpaper for each monitor. */
async function setWallpaper(file: string = imagePath): Promise<void> {
const monitors = ["monitorHDMI-0", "monitorHDMI-1"];
for (const monitor of monitors) {