Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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