{"id":26610274,"url":"https://github.com/times-z/zen-mod-polybar","last_synced_at":"2025-07-17T18:05:32.260Z","repository":{"id":158993480,"uuid":"492441583","full_name":"Times-Z/zen-mod-polybar","owner":"Times-Z","description":"Script to toggle brightness of a screen to 0 or 1 to be focused on work","archived":false,"fork":false,"pushed_at":"2022-05-15T10:25:28.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T01:40:38.193Z","etag":null,"topics":["polybar","polybar-scripts"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/Times-Z.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":"2022-05-15T09:27:38.000Z","updated_at":"2023-04-19T15:41:46.000Z","dependencies_parsed_at":"2023-08-28T00:15:10.995Z","dependency_job_id":null,"html_url":"https://github.com/Times-Z/zen-mod-polybar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Times-Z/zen-mod-polybar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Times-Z%2Fzen-mod-polybar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Times-Z%2Fzen-mod-polybar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Times-Z%2Fzen-mod-polybar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Times-Z%2Fzen-mod-polybar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Times-Z","download_url":"https://codeload.github.com/Times-Z/zen-mod-polybar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Times-Z%2Fzen-mod-polybar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265642616,"owners_count":23803908,"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":["polybar","polybar-scripts"],"created_at":"2025-03-24T01:38:28.896Z","updated_at":"2025-07-17T18:05:32.252Z","avatar_url":"https://github.com/Times-Z.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zen-mod-polybar\n\nScript to toggle brightness of a screen to 0 or 1 to be focused on work\n\n## Dependencies\n- xrandr\n\n## Configuration\n\nYou can modify one variable in `focus.sh`\n\n```sh\n# Screen to be toggled\n# Run `xrandr -q` to get output name\nreadonly SCREEN=\"DisplayPort-1\"\n```\n\n## Usage\n\nThe script expects parameters :\n - `--toggle` : Toggle brightness of the screen to 0 or 1\n - `--get-current` : Get current brightness and display an icon\n    - When brightness is \u003e 0 : ![Screen on](./.assets/screen_on.png)\n    - When brightness is set to 0 : ![Screen off](./.assets/screen_off.png)\n\n\nExample module for polybar\n\n```ini\n[module/focus]\ntype = custom/script\ninterval = 1\nexec = ~/.config/polybar/scripts/focus.sh --get-current\nclick-left = ~/.config/polybar/scripts/focus.sh --toggle\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimes-z%2Fzen-mod-polybar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimes-z%2Fzen-mod-polybar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimes-z%2Fzen-mod-polybar/lists"}