{"id":15007081,"url":"https://github.com/govnorice/powerdialog","last_synced_at":"2026-01-18T22:33:10.873Z","repository":{"id":233970755,"uuid":"787466131","full_name":"govnorice/powerdialog","owner":"govnorice","description":"Dialogue of shutdown, sleep, reboot PC","archived":false,"fork":false,"pushed_at":"2024-04-18T11:20:22.000Z","size":1323,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-04-18T21:05:05.086Z","etag":null,"topics":["c","cpp","gtk3","linux","linux-app","power","powermanager","poweroff","reboot","shutdown","shutdown-manager","sleep","suspend"],"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/govnorice.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}},"created_at":"2024-04-16T15:18:26.000Z","updated_at":"2024-04-23T12:03:04.179Z","dependencies_parsed_at":"2024-04-23T12:13:12.823Z","dependency_job_id":null,"html_url":"https://github.com/govnorice/powerdialog","commit_stats":null,"previous_names":["govnorice/powerdialog"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/govnorice/powerdialog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/govnorice%2Fpowerdialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/govnorice%2Fpowerdialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/govnorice%2Fpowerdialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/govnorice%2Fpowerdialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/govnorice","download_url":"https://codeload.github.com/govnorice/powerdialog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/govnorice%2Fpowerdialog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28552785,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T20:59:07.572Z","status":"ssl_error","status_checked_at":"2026-01-18T20:59:02.799Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","cpp","gtk3","linux","linux-app","power","powermanager","poweroff","reboot","shutdown","shutdown-manager","sleep","suspend"],"created_at":"2024-09-24T19:03:07.805Z","updated_at":"2026-01-18T22:33:10.856Z","avatar_url":"https://github.com/govnorice.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# powerdialog\n\nDialogue of shutdown, logout, sleep, reboot PC\n\nhttps://github.com/govnorice/powerdialog/assets/80642969/c9da78da-2c6e-497f-b96e-89570ffad2ca\n\n# INSTALL ARCH LINUX AND OTHER\n\n## I USE ARCH LINUX BTW?\nJust install the package from the AUR, damn it!\n```\nyay -S powerdialog\n```\n# OR\n1. Download executable file and move to /usr/bin:\n\n```\ncd download_location\nchmod +x powerdialog\nsudo mv powerdialog /usr/bin/powerdialog\n```\n2. Create polkit rule in \"/etc/polkit-1/rules.d/powerdialog.rules\":\n```\npolkit.addRule(function(action, subject) {\n    if (action.id == \"org.freedesktop.login1.power-off\" ||\n        action.id == \"org.freedesktop.login1.reboot\" ||\n        action.id == \"org.freedesktop.login1.suspend\" ||\n        action.id == \"org.freedesktop.login1.hibernate\") {\n        if (subject.user == \"root\" \u0026\u0026\n            subject.process.binary == \"/usr/bin/powerdialog\") {\n            return polkit.Result.YES;\n        }\n    }\n});\n```\n3. Restart polkit service\n```\nsudo systemctl restart polkit.service\n```\n# HOW TO USE\n\nhyprland example:\n```\nbind = $mainMod, P, exec, powerdialog\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgovnorice%2Fpowerdialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgovnorice%2Fpowerdialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgovnorice%2Fpowerdialog/lists"}