{"id":21984069,"url":"https://github.com/chazeon/my-bitbar-scripts","last_synced_at":"2026-04-28T21:03:28.394Z","repository":{"id":72453847,"uuid":"239932096","full_name":"chazeon/my-bitbar-scripts","owner":"chazeon","description":"My BitBar scripts.","archived":false,"fork":false,"pushed_at":"2020-02-12T06:26:08.000Z","size":1116,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-28T05:11:13.163Z","etag":null,"topics":["bitbar","bitbar-plugin","bitbar-plugins","hpc","macos-status","ncov","ncov-2019","ncov-data-visual","slurm","squeue"],"latest_commit_sha":null,"homepage":"https://github.com/chazeon/my-bitbar-scripts","language":"Python","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/chazeon.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}},"created_at":"2020-02-12T05:09:58.000Z","updated_at":"2020-07-19T16:35:51.000Z","dependencies_parsed_at":"2023-06-04T07:16:34.113Z","dependency_job_id":null,"html_url":"https://github.com/chazeon/my-bitbar-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chazeon%2Fmy-bitbar-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chazeon%2Fmy-bitbar-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chazeon%2Fmy-bitbar-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chazeon%2Fmy-bitbar-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chazeon","download_url":"https://codeload.github.com/chazeon/my-bitbar-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245044493,"owners_count":20551898,"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":["bitbar","bitbar-plugin","bitbar-plugins","hpc","macos-status","ncov","ncov-2019","ncov-data-visual","slurm","squeue"],"created_at":"2024-11-29T18:07:20.670Z","updated_at":"2026-04-28T21:03:23.355Z","avatar_url":"https://github.com/chazeon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My BitBar Scripts\n\nHere are my Python scripts and a library for [BitBar][bitbar-home].\n\n## Usage\n\nCreate a soft link from `scripts` to enabled\n```bash\nln -s scripts/XXX.py enabled/XXX.??m.py\n```\nor just copy it there.\n\n## The Library\n\nThe [`libs/bitbar.py`](/libs/bitbar.py) automates the generation of output.\n\nSimply create a `BitBarMessagePack` and `append()` any message to it, attributes like color, font or href is attached as a `dict`.\n\n### Examples\n\nFurther examples refer to published scripts.\n\n#### Multi-line plugin with extra data\n\n```bash\n#!/bin/bash\necho \"One\"\necho \"Two\"\necho \"Three\"\necho \"---\"\necho \"Four\"\necho \"Five\"\necho \"Six\"\n```\nequals\n```python\npkg = BitBarMessagePack(\"One\\nTwo\\nThree\")\necho \"---\"\npkg.append(\"Four\")\npkg.append(Five\")\npkg.append(\"Six\")\n```\n\n## Scripts\n\n### [📺 Slurm Queue](/scripts/squeue.py)\n\nList [Slurm][slurm] queue on a HPC.\n\n\u003cimg src=\"/screenshots/squeue.png\" width=300\u003e\n\n#### Requires\n\n[`fabric`][fabfile]\n\n#### Edit\n\n```python\nuser = \"USER\"\nserver = \"example.com\"\nprefix = \"\"\n```\n\n[fabfile]: http://www.fabfile.org\n[slurm]: https://slurm.schedmd.com/squeue.html\n\n### [🦠 nCov-2019 Statistics in NYC](/scripts/nCov-2019-NYC.py)\n\n\u003cimg src=\"/screenshots/nCov-2019-NYC.png\" width=450\u003e\n\nData from [NYCHealth-ncov].\n\n[NYCHealth-ncov]: https://www1.nyc.gov/site/doh/health/health-topics/coronavirus.page\n\n### [😷 nCov-2019 Statistics in China](/scripts/nCov-2019-CHN.py)\n\n\u003cimg src=\"/screenshots/nCov-2019-CHN.png\" width=150\u003e\n\n数据来源[丁香园][dxy-ncov]。\n\n[dxy-ncov]: https://ncov.dxy.cn/ncovh5/view/pneumonia\n\n[bitbar-home]: https://getbitbar.com\n[bitbar-github]: https://github.com/matryer/bitbar\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchazeon%2Fmy-bitbar-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchazeon%2Fmy-bitbar-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchazeon%2Fmy-bitbar-scripts/lists"}