{"id":42991351,"url":"https://github.com/agaragou/LockScreen-Calendar-ShortCut","last_synced_at":"2026-02-10T22:00:38.820Z","repository":{"id":332856486,"uuid":"1132850627","full_name":"agaragou/LockScreen-Calendar-ShortCut","owner":"agaragou","description":"Shortcut to display year calendar with events on the lock screen wallpaper for iPhones","archived":false,"fork":false,"pushed_at":"2026-01-15T21:24:09.000Z","size":4997,"stargazers_count":65,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-15T23:59:21.777Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/agaragou.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2026-01-12T14:38:16.000Z","updated_at":"2026-01-15T21:24:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/agaragou/LockScreen-Calendar-ShortCut","commit_stats":null,"previous_names":["agaragou/lockscreen-calendar-shortcut"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/agaragou/LockScreen-Calendar-ShortCut","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agaragou%2FLockScreen-Calendar-ShortCut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agaragou%2FLockScreen-Calendar-ShortCut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agaragou%2FLockScreen-Calendar-ShortCut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agaragou%2FLockScreen-Calendar-ShortCut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agaragou","download_url":"https://codeload.github.com/agaragou/LockScreen-Calendar-ShortCut/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agaragou%2FLockScreen-Calendar-ShortCut/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29319236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T20:44:44.282Z","status":"ssl_error","status_checked_at":"2026-02-10T20:44:43.393Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-31T03:00:31.206Z","updated_at":"2026-02-10T22:00:38.815Z","avatar_url":"https://github.com/agaragou.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# LockScreen Calendar Shortcut\n\nThis script for the Scriptable app generates minimalistic wallpapers for iPhone featuring a yearly calendar, event display, and current year progress.\n\n## Description\n\nThe script automatically scans your iOS calendars, filters them by a special prefix (or you can add them manually in script itself), and displays events on a yearly grid on your lock screen. Event colors are taken directly from iOS Calendar settings. It supports custom wallpapers from your Photos album, beautiful gradients, or clean solid colors.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"screenshots/preview.png\" width=\"200\" /\u003e\n  \u003cimg src=\"screenshots/preview2.png\" width=\"200\" /\u003e\n  \u003cbr/\u003e\n  \u003cimg src=\"screenshots/preview3.png\" width=\"200\" /\u003e\n  \u003cimg src=\"screenshots/preview4.png\" width=\"200\" /\u003e\n\u003c/p\u003e\n\n## Features\n\n- **Auto-Adaptation**: Adapts to your iPhone's screen size.\n- **Native Colors**: Uses colors set in the Calendar app.\n- **Filtering**: Displays only calendars with a specific prefix (default `*`), or you can add them manually in script itself to keep the screen uncluttered.\n- **Event Priority**: When events overlap, priority is determined alphabetically by calendar name or randomly (in case of manually added calendars priority is determined by order in script).\n- **Backgrounds**:\n  - **Custom Photos**: Use any photo from your library as a background.\n  - **Gradients**: Use stylish CSS-like linear gradients (3 colors).\n  - **Solid Colors**: Minimalist solid background.\n- **Legibility**: \"Container\" card option to ensure calendar is readable on any background.\n- **Statistics**: Shows events count or year progress.\n\n## Installation and Setup\n\n### Option A: Using Scriptable App (Recommended)\n1. Install [Scriptable](https://apps.apple.com/us/app/scriptable/id1405459188) from the App Store.\n2. Create a new script, name it `LockScreenCalendar`, and copy the code from `script.js` into Run Script action.\n3. In iOS settings (Calendar), rename existing calendars that you want to display by adding `*` to the beginning (e.g., `*Work`) or add them manually in script.\n\n### Option B: Paste Directly in Shortcuts\n1. You can skip creating a file in Scriptable and paste the entire code directly into the **Run Script** action in Shortcuts.\n\n---\n\n### Shortcuts Workflow Setup\n\n#### 1. Basic Setup (Solid Color / Gradient)\n1. Create a new Shortcut.\n2. Add **Run Script** action (Scriptable). Select your script (or paste code).\n3. Add **Set Wallpaper** action.\n   - Image: Select \"Output\" from previous step.\n   - Screen: \"Lock Screen\".\n   - **Disable \"Show Preview\" and \"Crop to Subject\"**.\n- For gradient background, ensure `showWallpaper` is set to `false` in the script. and `useGradient` is set to `true`.\n\n#### 2. Using Custom Wallpaper (Photos)\nTo use a random photo from an album as a background:\n\n1. Create an album in Photos (e.g., \"Wallpapers\").\n2. In Shortcuts, add **Find Photos** action at the very top.\n   - Filter: **Album is \"Wallpapers\"**.\n   - Sort by: **Random**.\n   - Limit: **Get 1 Item**.\n3. In the **Run Script** action:\n   - Tap and hold the **Parameter** field (it might say \"Input\" or be empty).\n   - Select **Photos** (the output from the first step).\n4. In the script `CONFIG`, ensure:\n   ```javascript\n   showWallpaper: true\n   ```\n\n\u003cimg src=\"screenshots/shortcut.png\" width=\"300\" /\u003e\n\n### Automation\nTo update daily:\n1. Go to \"Automation\" tab -\u003e \"Personal Automation\".\n2. Select **Time of Day** (e.g., 08:00).\n3. Add **Run Shortcut** action -\u003e Select your shortcut.\n4. Disable \"Ask Before Running\" and \"Notify When Run\" so it happens in the background.\n\n\u003cimg src=\"screenshots/automation.png\" width=\"300\" /\u003e\n\n\n\n## Configuration\n\nCustomize `CONFIG` at the top of the script:\n\n```javascript\nconst CONFIG = {\n  // --- 1. GENERAL \u0026 APPEARANCE ---\n  monthsToShow: 12,        // 12 = Year, 3 = Quarter, 1 = Month\n  monthsPerRow: 3,         // Standard is 3\n  monthOffset: 0,          // Start from 0 = Current, -1 = Previous, 1 = Next\n  contentScale: 1.0,       // Global Scale Multiplier\n\n  // Day \u0026 Dot Settings\n  showDayNumbers: false,   // true = numbers, false = dots\n  firstDayOfWeek: 1,       // 0 = Sunday, 1 = Monday\n  highlightWeekends: true,\n  dimPastDays: true,       // If true, past days are 30% opacity\n\n  // --- 2. BACKGROUND SETTINGS ---\n  // Custom Wallpaper (Photo from Shortcuts)\n  showWallpaper: true,     // Priority 1: Use photo if provided via Input\n  overlayOpacity: 0.3,     // Darken photo (0.0 - 1.0)\n  \n  // Gradient (Priority 2: Used if no photo or showWallpaper=false)\n  useGradient: true,\n  gradientColors: [\"#0F2027\", \"#203A43\", \"#2C5364\"], // Example: \"Moonlit Asteroid\"\n  \n  // Container (Card behind calendar for better visibility)\n  showContainer: true,\n  containerOpacity: 0.80,\n  containerRadius: 15,\n\n  // ... (Other standard settings)\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagaragou%2FLockScreen-Calendar-ShortCut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagaragou%2FLockScreen-Calendar-ShortCut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagaragou%2FLockScreen-Calendar-ShortCut/lists"}