{"id":13733003,"url":"https://github.com/TiagoDanin/Polybar-Helpers","last_synced_at":"2025-05-08T09:31:21.428Z","repository":{"id":55187112,"uuid":"154328593","full_name":"TiagoDanin/Polybar-Helpers","owner":"TiagoDanin","description":"Polybar - Helpers to create plugin/module using NodeJS","archived":false,"fork":false,"pushed_at":"2024-12-08T22:49:19.000Z","size":25,"stargazers_count":9,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-30T09:04:52.043Z","etag":null,"topics":["helpers","polybar","polybar-scripts"],"latest_commit_sha":null,"homepage":"https://tiagodanin.github.io/Polybar-Helpers/","language":"JavaScript","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/TiagoDanin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2018-10-23T13:00:16.000Z","updated_at":"2022-11-29T13:14:22.000Z","dependencies_parsed_at":"2024-01-06T12:25:19.251Z","dependency_job_id":"65be9121-ed16-4416-bfc5-fcb5cb8ec9aa","html_url":"https://github.com/TiagoDanin/Polybar-Helpers","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.2857142857142857,"last_synced_commit":"1c8498f2e4661deb050180c878e3ce6d1969262c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TiagoDanin%2FPolybar-Helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TiagoDanin%2FPolybar-Helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TiagoDanin%2FPolybar-Helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TiagoDanin%2FPolybar-Helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TiagoDanin","download_url":"https://codeload.github.com/TiagoDanin/Polybar-Helpers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253036435,"owners_count":21844216,"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":["helpers","polybar","polybar-scripts"],"created_at":"2024-08-03T03:00:36.565Z","updated_at":"2025-05-08T09:31:21.128Z","avatar_url":"https://github.com/TiagoDanin.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Developer"],"sub_categories":[],"readme":"# Polybar-Helpers\n\nPolybar - Helpers to create plugin/module using NodeJS\n\n## Installation\n\nThis is a [Node.js](https://nodejs.org/) module available through the\n[npm registry](https://www.npmjs.com/). It can be installed using the\n[`npm`](https://docs.npmjs.com/getting-started/installing-npm-packages-locally)\nor\n[`yarn`](https://yarnpkg.com/en/)\ncommand line tools.\n\n```sh\nnpm install polybar-helpers --save\n```\n\n## Usage\n\nConfig in polybar\n\n```\n; My Module\n[module/test]\ntype = custom/script\nexec = node App.js\nclick-left = echo left \u003e\u003e $HOME/.config/polybar/events\nclick-middle = echo middle \u003e\u003e $HOME/.config/polybar/events\nclick-right = echo right \u003e\u003e $HOME/.config/polybar/events\nscroll-up = echo scrollUp \u003e\u003e $HOME/.config/polybar/events\nscroll-down = echo scrollDown \u003e\u003e $HOME/.config/polybar/events\ntail = true\n```\n\nApp.js\n\n```js\nconst polybarHelpers = require('polybar-helpers')\n\npolybarHelpers(\n\t(app) =\u003e {\n\t\tapp.file('/home/tiago/.config/polybar/events')\n\t\tapp.on(['left', 'right'], (ctx) =\u003e {\n\t\t\tconsole.log(ctx)\n\t\t})\n\t\tapp.on('middle', (ctx) =\u003e {\n\t\t\tconsole.log(ctx)\n\t\t\tconsole.log(ctx.lastEvent) //return last event, e.g: left\n\t\t})\n\t\tapp.on(['scrollUp', 'scrollDown'], (ctx) =\u003e {\n\t\t\tconsole.log(ctx)\n\t\t\tconsole.log(ctx.event) //return current event, e.g: scrollUp or scrollDown\n\t\t})\n\t\tapp.error((msg, ctx) =\u003e {\n\t\t\tconsole.error(msg, ctx)\n\t\t})\n\t}\n)\n```\n\n## Dependencies\n\n- [tail](https://ghub.io/tail): tail a file in node\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTiagoDanin%2FPolybar-Helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTiagoDanin%2FPolybar-Helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTiagoDanin%2FPolybar-Helpers/lists"}