{"id":31626388,"url":"https://github.com/tsofnatmaman/autocustombackgrounddesktop","last_synced_at":"2026-01-20T17:44:26.015Z","repository":{"id":314772319,"uuid":"1056468231","full_name":"TsofnatMaman/AutoCustomBackgroundDesktop","owner":"TsofnatMaman","description":"PowerShell script that generates a daily countdown wallpaper on Windows, updates automatically with Task Scheduler, and runs silently in the background.","archived":false,"fork":false,"pushed_at":"2025-09-24T19:38:48.000Z","size":138,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-24T21:27:58.601Z","etag":null,"topics":["automation","countdown","powershell","wallpaper","windows"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TsofnatMaman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-14T06:42:13.000Z","updated_at":"2025-09-24T19:42:56.000Z","dependencies_parsed_at":"2025-09-14T18:34:29.023Z","dependency_job_id":"cdf82e52-fa47-4192-b3e7-49a2958b77e9","html_url":"https://github.com/TsofnatMaman/AutoCustomBackgroundDesktop","commit_stats":null,"previous_names":["tsofnatmaman/autocustombackgrounddesktop"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TsofnatMaman/AutoCustomBackgroundDesktop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TsofnatMaman%2FAutoCustomBackgroundDesktop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TsofnatMaman%2FAutoCustomBackgroundDesktop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TsofnatMaman%2FAutoCustomBackgroundDesktop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TsofnatMaman%2FAutoCustomBackgroundDesktop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TsofnatMaman","download_url":"https://codeload.github.com/TsofnatMaman/AutoCustomBackgroundDesktop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TsofnatMaman%2FAutoCustomBackgroundDesktop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278671749,"owners_count":26025743,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","countdown","powershell","wallpaper","windows"],"created_at":"2025-10-06T19:51:44.861Z","updated_at":"2025-10-06T19:51:46.167Z","avatar_url":"https://github.com/TsofnatMaman.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Daily Countdown Wallpaper for Windows\n\nThis project provides a PowerShell script (with an optional batch bootstrapper) that automatically downloads a base image, renders a **countdown text** until a target date, and sets it as the Windows desktop wallpaper.  \nIt also installs a **scheduled task** so that the wallpaper is updated **silently** every day and at user logon.\n\n---\n\n## Features\n\n- Downloads a fresh base image daily from GitHub.\n- Draws centered text with shadow and background (e.g., “X days left…”).\n- Updates the Windows wallpaper automatically.\n- Runs silently in the background (no visible PowerShell window).\n- Task Scheduler integration:\n  - Daily at a chosen time (default `00:30`).\n  - At logon.\n- Supports fallback if download fails (uses last cached image).\n\n---\n\n## Files\n\n- **`script1.ps1`**  \n  Main PowerShell script: handles image download, rendering, wallpaper update, and scheduled task creation (with hidden VBScript launcher).\n\n- **`run_wallpaper_silent.vbs`** (generated automatically)  \n  Tiny VBScript used to launch the PowerShell script silently.\n\n- **`bootstrap.bat`**  \n  Batch file that downloads the latest `script1.ps1` from GitHub into `%APPDATA%\\Microsoft\\Windows\\` and executes it.\n\n---\n\n## Installation\n\n1. Clone or download this repository, or simply use the provided **batch bootstrapper**:\n\n   ```bat\n   @echo off\n   set \"psScript=%APPDATA%\\Microsoft\\Windows\\script1.ps1\"\n\n   echo download...\n   powershell -Command \"Invoke-WebRequest -Uri https://raw.githubusercontent.com/\u003cusername\u003e/\u003crepo\u003e/main/AutoCustomBackgroundDesktop/script1.ps1 -OutFile '%psScript%'\"\n\n   if exist \"%psScript%\" (\n       echo success\n       powershell -ExecutionPolicy Bypass -File \"%psScript%\"\n   ) else (\n       echo error\n   )\n   ```\n\n   Replace `\u003cusername\u003e/\u003crepo\u003e` with this repository path.\n\n2. Run the batch file once.  \n   - It will download and execute the PowerShell script.  \n   - The script creates the VBScript launcher and registers the scheduled task.\n\n---\n\n## Configuration\n\n- **Target date** is currently set to **2025-05-15** inside `script1.ps1`:\n\n  ```powershell\n  $targetDay = Get-Date \"2025-05-15\"\n  ```\n\n  Change this line to your desired date.\n\n- **Scheduled time** defaults to `00:30`:\n\n  ```powershell\n  $dailyTime = \"00:30\"\n  ```\n\n  Update this to another time if needed.\n\n- **Base image URL** can be replaced with your own image source.\n\n---\n\n## How It Works\n\n1. **Download** – Grabs the base image daily with cache-busting.  \n2. **Render** – Draws countdown text with font, shadow, and semi-transparent background.  \n3. **Set wallpaper** – Calls Windows API (`SystemParametersInfo`) to apply the image.  \n4. **Silent updates** – A VBScript launcher is created, and Task Scheduler runs it daily and at logon, hidden from the user.\n\n---\n\n## Requirements\n\n- Windows 10 / 11  \n- PowerShell 5+ (or PowerShell 7 with Windows compatibility)  \n- .NET Framework (for `System.Drawing`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsofnatmaman%2Fautocustombackgrounddesktop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsofnatmaman%2Fautocustombackgrounddesktop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsofnatmaman%2Fautocustombackgrounddesktop/lists"}