{"id":13578617,"url":"https://github.com/b3nj5m1n/lemonblocks","last_synced_at":"2025-04-05T19:33:20.104Z","repository":{"id":54375945,"uuid":"271666463","full_name":"b3nj5m1n/lemonblocks","owner":"b3nj5m1n","description":"A status bar generator for lemonbar, inspired by i3blocks and dwmblocks.","archived":false,"fork":false,"pushed_at":"2021-02-23T15:36:08.000Z","size":118,"stargazers_count":48,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-22T06:25:59.609Z","etag":null,"topics":["bar","bspwm","i3blocks","lemonbar"],"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/b3nj5m1n.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}},"created_at":"2020-06-11T23:33:04.000Z","updated_at":"2024-10-14T17:07:18.000Z","dependencies_parsed_at":"2022-08-13T13:50:20.171Z","dependency_job_id":null,"html_url":"https://github.com/b3nj5m1n/lemonblocks","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b3nj5m1n%2Flemonblocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b3nj5m1n%2Flemonblocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b3nj5m1n%2Flemonblocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b3nj5m1n%2Flemonblocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b3nj5m1n","download_url":"https://codeload.github.com/b3nj5m1n/lemonblocks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393094,"owners_count":20931804,"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":["bar","bspwm","i3blocks","lemonbar"],"created_at":"2024-08-01T15:01:32.264Z","updated_at":"2025-04-05T19:33:19.672Z","avatar_url":"https://github.com/b3nj5m1n.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"\u003c!-- PROJECT SHIELDS --\u003e\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\n\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ch3 align=\"center\"\u003elemonblocks\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    A status bar generator for lemonbar, inspired by i3blocks and dwmblocks.\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/b3nj5m1n/lemonblocks/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/b3nj5m1n/lemonblocks/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n## Table of Contents\n\n* [About the Project](#about-the-project)\n* [Getting Started](#getting-started)\n  * [Prerequisites](#prerequisites)\n  * [Installation](#installation)\n* [Usage](#usage)\n* [Contributing](#contributing)\n* [License](#license)\n\n\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\n[![Product Name Screen Shot][product-screenshot]]()\n\nA status bar generator for lemonbar, inspired by i3blocks and dwmblocks, written in plain C.\n\n![demo](https://i.imgur.com/VEPfM47.gif)\n\n![demo](https://i.imgur.com/NkMaIH8.png)\n\nLemonbar reads from stdin for the status, it supports clickable areas, the commands will be written to stout.\n\nLemonblocks tries to make feeding the bar easier. You can define your own modules which you can asign signals. Every time you want to update one of your modules, you can send a signal to the instance of lemonblocks to run the associated command. This means that you don't have to run a script at certain intervals, instead you update it only when necessary.\n\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\n\n### Prerequisites\n\n* lemonbar \nLemonbar is a very leightweight bar. The original doesn't support XFT fonts, for that you will have to use a fork, such as [this one](https://aur.archlinux.org/packages/lemonbar-xft-git/), but if you want to have emojis you should probably use [this fork](https://github.com/freundTech/bar).\n*   (Optional) [Ubuntu Mono Font](https://aur.archlinux.org/packages/nerd-fonts-ubuntu-mono/)\n*   (Optional) [Twemoji Font (Twitters emojis)](https://aur.archlinux.org/packages/ttf-twemoji/)\n\n### Installation\n\n1. Clone the repo\n```sh\ngit clone https://github.com/b3nj5m1n/lemonblocks.git\n```\n2. Bulid \u0026 Install lemonblocks\n```sh\nsudo make install\n```\n3. Copy default config\n```sh\nmake config\n```\n4. Copy scripts\n```sh\nsudo make scripts\n```\n\n\u003c!-- USAGE EXAMPLES --\u003e\n## Usage\n\n### Starting lemonbar \u0026 lemonblocks\n\nThe script called start.sh will start lemonbar with sensible default settings as well as lemonblocks.\n\nThe script is moved to /usr/bin when installing, you can call it like this:\n```bash\nstart-lemonbar.sh \u0026\n```\n\n### Updating a module\n\n```bash\n# 3 is the signal for your module\npkill lemonblocks -3\n```\n\n### Config\n\nYou can configure your modules in the file config.txt located at ~/.config/lemonblocks. (Run make config to create the directory and copy the default config)\n```c\n# Seperate values with a , (No space afterwards)\n# Interval  Signal Icon  Command Alignment   Initial Status  BgColor FgColor LeftClick   MiddleClick RightClick  ScrollUp    ScrollDown Prefix Suffix\n# Interval of 0 means it will only be updated by signals. NULL means nothing or default value for icons, colors and mouse events\n# Example config:\n0,3,🍍,/usr/bin/lbscripts/powermenu.sh,l, ,NULL,f8f8ff,NULL,NULL,NULL,NULL,NULL,[,]\n1,4,NULL,/usr/bin/lbscripts/bspwm.sh,l, ,NULL,f8f8ff,NULL,NULL,NULL,NULL,NULL,[,]\n1,5,NULL,/usr/bin/lbscripts/cmus.sh,l, ,NULL,f8f8ff,cmus-remote -u; pkill lemonblocks -5,NULL,NULL,cmus-remote -v +1%,cmus-remote -v -1%,[,]\n0,6,🔈,/usr/bin/lbscripts/volume.sh,r, ,aa1d1f21,f8f8ff,amixer set Master toggle; pkill lemonblocks -6,NULL,NULL,amixer -q sset Master 1%+; pkill lemonblocks -6,amixer -q sset Master 1%-; pkill lemonblocks -6,[,]\n0,7,📁,/usr/bin/lbscripts/free-space.sh,r, ,aa1d1f21,f8f8ff,NULL,NULL,NULL,NULL,NULL,[,]\n0,8,🐒,/usr/bin/lbscripts/layout.sh,r, ,aa1d1f21,f8f8ff,NULL,NULL,NULL,NULL,NULL,[,]\n300,10,NULL,/usr/bin/lbscripts/network.sh,r, ,aa1d1f21,f8f8ff,NULL,NULL,NULL,NULL,NULL,[,]\n30,11,⏰,/usr/bin/lbscripts/date.sh,r, ,aa1d1f21,f8f8ff,NULL,NULL,NULL,NULL,NULL,[,]\n```\n\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n\n\n\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[contributors-shield]: https://img.shields.io/github/contributors/b3nj5m1n/lemonblocks?style=flat-square\n[contributors-url]: https://github.com/b3nj5m1n/b3nj5m1n/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/b3nj5m1n/lemonblocks.svg?style=flat-square\n[forks-url]: https://github.com/b3nj5m1n/lemonblocks/network/members\n[stars-shield]: https://img.shields.io/github/stars/b3nj5m1n/lemonblocks.svg?style=flat-square\n[stars-url]: https://github.com/b3nj5m1n/lemonblocks/stargazers\n[issues-shield]: https://img.shields.io/github/issues/b3nj5m1n/lemonblocks.svg?style=flat-square\n[issues-url]: https://github.com/b3nj5m1n/lemonblocks/issues\n[license-shield]: https://img.shields.io/github/license/b3nj5m1n/lemonblocks.svg?style=flat-square\n[license-url]: https://github.com/b3nj5m1n/lemonblocks/blob/master/LICENSE.txt\n[product-screenshot]: https://socialify.git.ci/b3nj5m1n/lemonblocks/image?font=Inter\u0026language=1\u0026owner=1\u0026pattern=Circuit%20Board\u0026theme=Light\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb3nj5m1n%2Flemonblocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb3nj5m1n%2Flemonblocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb3nj5m1n%2Flemonblocks/lists"}