{"id":22006332,"url":"https://github.com/javiorfo/xtatusbar","last_synced_at":"2025-05-05T21:51:16.423Z","repository":{"id":232097148,"uuid":"783467643","full_name":"javiorfo/xtatusbar","owner":"javiorfo","description":"Configurable statusbar for Xorg server using xsetroot","archived":false,"fork":false,"pushed_at":"2024-08-14T02:22:51.000Z","size":59,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-14T03:59:16.339Z","etag":null,"topics":["c","dwm","linux","xorg","xsetroot"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javiorfo.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":"2024-04-08T00:16:16.000Z","updated_at":"2024-08-14T02:22:54.000Z","dependencies_parsed_at":"2024-08-03T03:44:16.894Z","dependency_job_id":"39ca0ee4-206e-43c7-9fde-adb057248eb3","html_url":"https://github.com/javiorfo/xtatusbar","commit_stats":null,"previous_names":["javiorfo/xtatusbar","chaosystema/xtatusbar"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fxtatusbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fxtatusbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fxtatusbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fxtatusbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javiorfo","download_url":"https://codeload.github.com/javiorfo/xtatusbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252583954,"owners_count":21771942,"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":["c","dwm","linux","xorg","xsetroot"],"created_at":"2024-11-30T01:11:37.548Z","updated_at":"2025-05-05T21:51:16.417Z","avatar_url":"https://github.com/javiorfo.png","language":"C","funding_links":["https://www.paypal.com/donate/?hosted_button_id=FA7SGLSCT2H8G"],"categories":[],"sub_categories":[],"readme":"# xtatusbar\n*Configurable statusbar for Xorg server using xsetroot*\n\n# ⚠️ Attention\n## This project is no longer maintained in favor of [ztatusbar](https://github.com/javiorfo/ztatusbar)\n\n## Caveats\n- Dependencies: `xsetroot`, `asoundlib` and `libcurl`\n- Influenced by suckless software (changes are doing by config.h file and recompilation).\n- This library has been developed on and for Linux following open source philosophy.\n\n## Installation\n- First step:\n```bash\ngit clone https://github.com/javiorfo/xtatusbar\ncd xtatusbar\nsudo make clean install\n```\n\n- In your **~/.xinitrc** to start in every login\n```bash\nxtatusbar \u0026\n```\n\n## Overview\n| Component | xtatusbar | NOTE |\n| ------- | ------------- | ---- |\n| CPU usage | :heavy_check_mark: | percentage |\n| RAM usage | :heavy_check_mark: | percentage |\n| TEMPERATURE | :heavy_check_mark: | Celcious |\n| DISK USAGE | :heavy_check_mark: | percentage |\n| VOLUME LEVEL | :heavy_check_mark: | Level and Mute status |\n| BATTERY LEVEL | :heavy_check_mark: | percentage |\n| WEATHER | :x: | |\n| NETWORK STATUS | :heavy_check_mark: | Receive and send packages |\n| DATE | :heavy_check_mark: | could be custimizable |\n| CUSTOM COMPONENT | :heavy_check_mark: | coding in C |\n\n## Customizable config.h\n- Edit [config.h](https://github.com/javiorfo/xtatusbar/blob/master/config.h) to change values or configurations (then recompile)\n- By default the values by parameters are the following:\n```c\n// First element is a string interpolation\n// Second element is the time in miliseconds in which every component will execute the function in the third element\n// Third element is the function to be executed\nstatic Component components[] = {\n    { \"  CPU %hd%% | \", 1000, get_cpu_usage },\n    { \"  RAM %hd%% | \", 1000, get_ram_usage },\n    { \"󰏈  TEMP %hd°C | \", 1000, get_cpu_temperature },\n    { \"󰋊  DISK %hd%% | \", 5000, get_disk_usage },\n    { \"󰋊  VOL %s | \", 100, get_volume },\n    { \"%s NET | \", 5000, network_is_connected },\n    { \"  %s \", 60000, get_date },\n    // { \"  BAT %hd%% | \", 5000, get_battery_status },\n    // { \"CUSTOM %s \", 1000, execute_script },\n};\n\n// File where to get PC temperature\n// static const char *TEMPERATURE_FILE = \"/sys/class/thermal/thermal_zone0/temp\";\nstatic const char* TEMPERATURE_FILE = \"/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input\";\n\n// File where to get battery info\nstatic const char* BATTERY_FILE = \"/sys/class/power_supply/BAT0/uevent\";\n\n// Date format calendar\nstatic const char* DATE_FORMAT = \"%A %d/%m/%Y %H:%M\";\n\n// Path to a script if execute_script function is used\nstatic const char* SCRIPT = \"./path/to/script\";\n\n```\n\n## Screenshots\n\n\u003cimg src=\"https://github.com/javiorfo/img/blob/master/xtatusbar/xtatusbar.png?raw=true\" alt=\"xtatusbar\" /\u003e\n\n---\n\n### Donate\n- **Bitcoin** [(QR)](https://raw.githubusercontent.com/javiorfo/img/master/crypto/bitcoin.png)  `1GqdJ63RDPE4eJKujHi166FAyigvHu5R7v`\n- [Paypal](https://www.paypal.com/donate/?hosted_button_id=FA7SGLSCT2H8G)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviorfo%2Fxtatusbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaviorfo%2Fxtatusbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviorfo%2Fxtatusbar/lists"}