{"id":13753480,"url":"https://github.com/mbenoukaiss/clapet","last_synced_at":"2026-01-22T13:42:16.840Z","repository":{"id":63866084,"uuid":"568541199","full_name":"mbenoukaiss/clapet","owner":"mbenoukaiss","description":"Clapet is a utility that aims to improve clamshell mode on your Macbook by automatically managing sleep when an external display is detected","archived":false,"fork":false,"pushed_at":"2025-02-04T23:08:04.000Z","size":400,"stargazers_count":89,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-09T21:34:54.068Z","etag":null,"topics":["clamshell","macos","pmset","sleep","swiftui"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/mbenoukaiss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-11-20T20:58:48.000Z","updated_at":"2025-05-05T07:46:44.000Z","dependencies_parsed_at":"2024-08-23T21:02:21.192Z","dependency_job_id":"15885df6-eb8a-44d4-b7a9-ec69784e0631","html_url":"https://github.com/mbenoukaiss/clapet","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/mbenoukaiss/clapet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbenoukaiss%2Fclapet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbenoukaiss%2Fclapet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbenoukaiss%2Fclapet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbenoukaiss%2Fclapet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbenoukaiss","download_url":"https://codeload.github.com/mbenoukaiss/clapet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbenoukaiss%2Fclapet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28663856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"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":["clamshell","macos","pmset","sleep","swiftui"],"created_at":"2024-08-03T09:01:23.092Z","updated_at":"2026-01-22T13:42:16.807Z","avatar_url":"https://github.com/mbenoukaiss.png","language":"Swift","funding_links":[],"categories":["Utilities"],"sub_categories":["Local System Status"],"readme":"\u003cimg align=\"left\" width=\"70\" height=\"90\" src=\"https://raw.githubusercontent.com/mbenoukaiss/clapet/main/Icon.svg\" alt=\"Clapet icon\"/\u003e\n\n# \u0026nbsp;Clapet\nClapet is a utility that aims to improve clamshell mode on your Macbook.\n\nClamshell mode on mac keeps your mac awake when you close the lid but it \nonly works when a power adapter is connected. This app aims to solve this\nproblem by allowing clamshell mode even on battery.\n\nWhen an external display is detected while on battery or power adapter, the application will \ndisable sleep so you can use your computer with the lid closed, and as soon as the external \ndisplay is unplugged, sleep will be enabled again to preserve battery.\n\n**After macOS updates you may have to go through the _Manual configuration_ step again**\n\n## Features\n* Automatically disable sleep if an external display is connected\n* Disable sleep for a specified amount of time\n* Manage sleep through shortcuts\n\n## Installing\nYou can download the app from the [release](https://github.com/mbenoukaiss/clapet/releases/latest)\ntab or by [clicking this link](https://github.com/mbenoukaiss/clapet/releases/latest/download/Clapet.app.zip)\nlink directly.\n\nWhen the application is done downloading, you can open the zip file and move the `Clapet.app` file it to \nthe `Application` folder on your mac and run it for the first time.\n\n**You may be unable to start the application** since I do not have an Apple Developper licence, to fix this \nproblem, depending on your MacOS version you will either have to\n- try to open the app once and go to `MacOS Settings \u003e Privacy \u0026 Security \u003e (scroll to the bottom) \"Clapet.app\" was blocked to protect your Mac \u003e Open Anyway`\n- right click the application from the Applications folder and click Open, it should then allow you to bypass the security warning.\nDue to the way it works, Clapet can also not be submitted to the AppStore.\n\n### Manual configuration\nWhen launched the application will ask you to configure the `pmset` utility, if you skipped it\nyou can still do it from the advanced tab in settings or you can do it manually by following the\ninstructions below.\n\nThe application uses the command line utility `pmset` to work. This utility requires root\npermissions to be ran. If no changes are made the application will ask for password each time\nit either disables or enables sleep which can get annoying.\n\nIn order to disable password requirement to run `pmset` you will need to edit the sudoers file.\nRunning the following command will open the sudoers file in Vim, you can choose another editor by\nsetting the `EDITOR` variable before (for example `EDITOR=\"nano\" sudo visudo`)\n```shell\nsudo visudo\n```\n\nThen add the following line at the bottom of the file and replace `username` by your username\n```\nusername ALL = NOPASSWD : /usr/bin/pmset\n```\n\nYou should now be able to run `sudo pmset` without entering your password. The configuration in this step\nmay get erased after a macOS upate, you should do it again if the app starts asking for permissions again.\n\n\n### Uninstalling\nIf you want to uninstall the app, remove the line added in the sudoers file mentioned in \nthe **Manual configuration** section and delete the application from your computer.\n\n## Contributing\nAny kind of contribution either through pull requests or simple issues describing a feature \nyou'd like to have in the application or a problem you get when using it are welcome.\n\n## License\nThis project is licensed under the terms of the [GNU GPLv3](./LICENSE) license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbenoukaiss%2Fclapet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbenoukaiss%2Fclapet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbenoukaiss%2Fclapet/lists"}