{"id":13649010,"url":"https://github.com/katernet/darkmode","last_synced_at":"2025-04-22T12:33:02.044Z","repository":{"id":217099420,"uuid":"124227570","full_name":"katernet/darkmode","owner":"katernet","description":"Set macOS dark mode and Alfred dark theme at sunset","archived":true,"fork":false,"pushed_at":"2020-06-14T12:54:08.000Z","size":269,"stargazers_count":150,"open_issues_count":0,"forks_count":10,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-08-03T01:39:24.454Z","etag":null,"topics":["alfred","darkmode","launchd","macos","mojave","shell","sunset"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/katernet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-03-07T11:41:14.000Z","updated_at":"2024-06-22T14:00:36.000Z","dependencies_parsed_at":"2024-01-14T15:36:12.613Z","dependency_job_id":"f9dcfcba-0572-47d8-a3f3-e0a6ef34e027","html_url":"https://github.com/katernet/darkmode","commit_stats":null,"previous_names":["katernet/darkmode"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katernet%2Fdarkmode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katernet%2Fdarkmode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katernet%2Fdarkmode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katernet%2Fdarkmode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/katernet","download_url":"https://codeload.github.com/katernet/darkmode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223896472,"owners_count":17221441,"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","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":["alfred","darkmode","launchd","macos","mojave","shell","sunset"],"created_at":"2024-08-02T01:04:42.174Z","updated_at":"2024-11-09T23:30:48.691Z","avatar_url":"https://github.com/katernet.png","language":"Shell","readme":"# darkmode\n\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://github.com/katernet/darkmode/releases/latest\"\u003e\u003cimg src=\"https://img.shields.io/badge/download-latest-brightgreen.svg\" alt=\"download\"\u003e\u003c/a\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/platform-macOS-ab69b1.svg\" alt=\"platform\"\u003e\n\t\u003cimg src=\"https://img.shields.io/github/downloads/katernet/darkmode/total.svg\"\u003e\n\u003c/p\u003e\n\nSet macOS dark mode at sunset. If you have Alfred installed, the dark theme will also be set.\n\nThis shell script gets the sunrise and sunset times from Night Shift and automates the setting up of two user launch agents for sunrise and sunset, which then take over running the script thereafter. If your mac was asleep/off during the solar times, launchd will run the script when you're next logged in!\n\nOr you can supply your own sunrise and sunset 24H times by passing arguments. Example: 0600 1800\n\nNews: macOS Catalina includes an 'auto' Dark Mode and the new version of Alfred remembers the theme set for light/dark mode and so basically there's no point in using this 😋. However, if you're on an earlier macOS release or you're a fan of setting your own Dark Mode schedules, then this is just for you!\n\n##### Mojave and later\n![Mojave](resources/mojave.gif \"Mojave Dark Mode\")\n\n##### High Sierra and below\n![HighSierra](resources/highsierra.gif \"High Sierra dark menu bar and dock\")\n\n### Usage\n```\n$ ./darkmode.sh\n\nOR\n\n$ ./darkmode.sh HHMM HHMM\n```\n\n### Notes\n\nCompatible with macOS Mojave and later Dark Mode. Press OK to the security dialogs to allow control to System Events that appear when first running the script.\n\nNight Shift requires Wifi and \"Setting Timezone\" enabled in System Preferences \u003e Security \u0026 Privacy \u003e Location Services \u003e System Services \u003e Details.\n\nIf your Mac does not support Night Shift, please use the previous version [1.7.2](https://github.com/katernet/darkmode/releases/tag/1.7.2) which uses the Yahoo Weather API.\n\nIf you have a custom Alfred theme, you can change the name of the themes in the global variables.\n\nA log file is stored in ~/Library/Logs which logs solar time changes and script errors.\n\nTo uninstall: ```$ ./darkmode.sh /u```\n","funding_links":[],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaternet%2Fdarkmode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaternet%2Fdarkmode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaternet%2Fdarkmode/lists"}