{"id":30876197,"url":"https://github.com/vollowx/wp-swayidle","last_synced_at":"2025-09-08T02:07:38.063Z","repository":{"id":307493304,"uuid":"1029534718","full_name":"vollowx/wp-swayidle","owner":"vollowx","description":"A program that manages swayidle depending on audio output","archived":false,"fork":false,"pushed_at":"2025-07-31T13:21:44.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-31T16:39:21.082Z","etag":null,"topics":["c","pipewire","swayidle","wireplumber"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vollowx.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-31T07:32:54.000Z","updated_at":"2025-07-31T13:21:48.000Z","dependencies_parsed_at":"2025-07-31T16:39:23.728Z","dependency_job_id":null,"html_url":"https://github.com/vollowx/wp-swayidle","commit_stats":null,"previous_names":["vollowx/wp-swayidle"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/vollowx/wp-swayidle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vollowx%2Fwp-swayidle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vollowx%2Fwp-swayidle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vollowx%2Fwp-swayidle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vollowx%2Fwp-swayidle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vollowx","download_url":"https://codeload.github.com/vollowx/wp-swayidle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vollowx%2Fwp-swayidle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274121957,"owners_count":25225801,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"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":["c","pipewire","swayidle","wireplumber"],"created_at":"2025-09-08T02:07:34.693Z","updated_at":"2025-09-08T02:07:38.053Z","avatar_url":"https://github.com/vollowx.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wp-swayidle\n\nA program that manages swayidle depending on audio output.\n\nIf any active stream is detected, swayidle will be stopped, if not, swayidle\nwill be re-spawned. Only the swayidle instance spawned by wp-swayidle will be\nstopped.\n\nOriginally, I wrote this program because it's hard to pause swayidle on all the\noccasions that I do not want my screen suddenly been locked, like when I am\nwatching a video in a browser that is not in fullscreen, playing games that are\nnot listed in the `for_window` rules in Sway, or just listening to music hosted\nby `mpd`. By just checking if there is any audio output, almost all the\noccasions are covered.\n\n## Dependencies\n\n### Runtime Dependencies\n\n- swayidle\n\n### Build Dependencies\n\n- meson\n- ninja\n- GCC or compatible C compiler\n- wireplumber\n- pipewire\n\n## Installation\n\n    meson setup build\n    ninja -C build\n\n    sudo ninja -C build install\n\n## Usage\n\n    wp-swayidle \u003cinterval\u003e [-- \u003cswayidle args\u003e...]\n\nFor example in `~/.config/sway/config`:\n\n    exec swayidle -w before-sleep 'swaylock'\n    exec wp-swayidle 3 -- timeout 300 'swaylock' \\\n                          timeout 600 'swaymsg \"output * power off\"' \\\n                          resume 'swaymsg \"output * power on\"'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvollowx%2Fwp-swayidle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvollowx%2Fwp-swayidle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvollowx%2Fwp-swayidle/lists"}