Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jungerboyo/zi-status
Xorg status bar written in zig.
https://github.com/jungerboyo/zi-status
alsa dwmstatus xorg zig
Last synced: 30 days ago
JSON representation
Xorg status bar written in zig.
- Host: GitHub
- URL: https://github.com/jungerboyo/zi-status
- Owner: JungerBoyo
- License: mit
- Created: 2023-02-05T22:39:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-08T17:14:59.000Z (over 1 year ago)
- Last Synced: 2024-11-13T05:33:14.616Z (3 months ago)
- Topics: alsa, dwmstatus, xorg, zig
- Language: Zig
- Homepage:
- Size: 92.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zi-status
---
![]()
---
## Currently shows
- internet connection state (ip+mask+speed+type{wifi,ethernet}+SSID(only wifi)+signal strength(only wifi)
- date and time info
- battery info
- sound level info (ALSA)
- ram memory usage in MB (Total mem - Available mem)
- weather info (temp+humidity+sunset)## Configuration instructions
Under src/ there is config.zig file. In there you can adjust available config parameters that are mostly self-explanatory. Config argument `WEATHER_X_API_KEY` is a string that you get after making an account at https://api-ninjas.com. There you get 50k free API requests per month.After adjusting the config enter the project directory and:
`zig build -Drelease-fast=true`
It will build the project and ouput the executable under `$PROJ_DIR/zig-out/bin`
## Running instructions
`zi-status` takes one optional* `timezone` parameter in format (+/-)NN00 where N is a digit. For example for timezone UTC+1 the argument should be +0100. Format is based on one that `timedatectl` command returns. Example of how to extract it from timedatectl output:`timedatectl | grep zone | awk '{print$5}' | tr -d "\)"`
*if no timezone arg is passed timezone +0000 is assumed