{"id":17709766,"url":"https://github.com/ccnokes/node-desktop-bg","last_synced_at":"2025-03-31T08:17:14.799Z","repository":{"id":88144237,"uuid":"59174932","full_name":"ccnokes/node-desktop-bg","owner":"ccnokes","description":"Native node module for setting the desktop background (Mac OSX only currently)","archived":false,"fork":false,"pushed_at":"2016-05-19T05:04:54.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T07:39:26.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C++","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/ccnokes.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}},"created_at":"2016-05-19T04:59:04.000Z","updated_at":"2024-05-20T11:09:41.000Z","dependencies_parsed_at":"2023-07-23T20:06:58.803Z","dependency_job_id":null,"html_url":"https://github.com/ccnokes/node-desktop-bg","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"7796360a71fed647f547e567f0ad3be11ac66266"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccnokes%2Fnode-desktop-bg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccnokes%2Fnode-desktop-bg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccnokes%2Fnode-desktop-bg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccnokes%2Fnode-desktop-bg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ccnokes","download_url":"https://codeload.github.com/ccnokes/node-desktop-bg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246436358,"owners_count":20776995,"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":[],"created_at":"2024-10-25T05:05:21.092Z","updated_at":"2025-03-31T08:17:14.777Z","avatar_url":"https://github.com/ccnokes.png","language":"Objective-C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-desktop-bg\n\nThis is my first attempt at a native node module. It only works on Mac OSX currently. Maybe I'll try to get Windows and Linux working on it someday. \n\n## API\n\n### `getDesktopImages`\nThis returns:\n```javascript\n[\n  {\n    filepath: '/Library/Desktop Pictures/Earth and Moon.jpg', //absolute path to file\n    isMain: true, // is it the main screen or a secondary?\n    id: 2077750397 // the screeen id. note that this changes if the user connects/disconnects a display\n  }\n]\n```\n\n### `setDesktopImages`\nParams:\n```\n{int|string} screen id|\"main\"\n{string} File URL to new image. Must start with \"file://\"\n```\nReturns `true` if it worked. The existence of the file URL is not checked.\n\n\n## Sample\n\n```javascript\nconst DesktopBg = require('node-desktop-bg');\n\nconsole.log(DesktopBg.getDesktopImages());\n\nDesktopBg.getDesktopImages().forEach(screen =\u003e {\n  DesktopBg.setDesktopImage(screen.id, 'file:///Images/RickAstley/Rickrolling.png');\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccnokes%2Fnode-desktop-bg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccnokes%2Fnode-desktop-bg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccnokes%2Fnode-desktop-bg/lists"}