{"id":20437730,"url":"https://github.com/knightchaser/nonsleep-screen","last_synced_at":"2026-04-19T02:33:49.836Z","repository":{"id":262827815,"uuid":"888469513","full_name":"KnightChaser/nonsleep-screen","owner":"KnightChaser","description":"A simple GUI program written in C to toggle screen sleep inhibition on Ubuntu Desktop.","archived":false,"fork":false,"pushed_at":"2024-11-14T13:30:24.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-15T19:53:35.165Z","etag":null,"topics":["gtk","screen","utility"],"latest_commit_sha":null,"homepage":"","language":"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/KnightChaser.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":"2024-11-14T13:04:24.000Z","updated_at":"2024-11-14T13:30:27.000Z","dependencies_parsed_at":"2024-11-14T14:32:50.193Z","dependency_job_id":"26cc33c9-562c-4d67-bcdc-7c6d0835ea7f","html_url":"https://github.com/KnightChaser/nonsleep-screen","commit_stats":null,"previous_names":["knightchaser/nonsleep-screen"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnightChaser%2Fnonsleep-screen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnightChaser%2Fnonsleep-screen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnightChaser%2Fnonsleep-screen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnightChaser%2Fnonsleep-screen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KnightChaser","download_url":"https://codeload.github.com/KnightChaser/nonsleep-screen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241982939,"owners_count":20052587,"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":["gtk","screen","utility"],"created_at":"2024-11-15T09:07:11.046Z","updated_at":"2026-04-19T02:33:49.789Z","avatar_url":"https://github.com/KnightChaser.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nonsleep-screen\n\nThis is a simple GTK-based program written in C that allows you to toggle sleep inhibition (preventing the screen from automatically turning off) on Ubuntu Desktop.\n\n![image](https://github.com/user-attachments/assets/08886d58-cbe9-4f60-8ed3-e96279cb815e)\n\n## Requirements\n\n- **GTK 3** development libraries\n  - Install via: `sudo apt update \u0026\u0026 sudo apt install libgtk-3-dev`\n\n## What It Does (simple!)\n\n- Provides a small window with:\n  - A **button** to toggle sleep inhibition on and off.\n  - A **label** showing the current status of sleep inhibition, displayed in bold and color:\n    - **Green** text for \"Enabled\"\n    - **Red** text for \"Disabled\"\n\n## Build and Run\n\n1. **Build the Program**  \n   Run `make` in the project directory to compile the program into `main.out`.\n\n2. **Run the Program**  \n   Execute the program with:\n\n   ```bash\n   ./main.out\n\n3. (Optional) If you want to register the compiled binary as an application for your Ubuntu Desktop, run `./register_as_app.sh` with a root(`sudo`) permission. It eliminates the need of manually opening the terminal, finding the path of `main.out` of this project, and manually run.\n\n    ```bash\n    sudo ./register_as_app.sh\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknightchaser%2Fnonsleep-screen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknightchaser%2Fnonsleep-screen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknightchaser%2Fnonsleep-screen/lists"}