Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/r4gus/zigenity

Like zenity but in Zig
https://github.com/r4gus/zigenity

gtk gtk3 gui zig zig-package

Last synced: 2 days ago
JSON representation

Like zenity but in Zig

Awesome Lists containing this project

README

        

# zigenity

Like [zenity](https://gitlab.gnome.org/GNOME/zenity) but in [Zig](https://ziglang.org/) and only for Linux.

![Question Dialog](static/example01.png)

## Dialog Types

| Type | Supported |
|:----:|:---------:|
| calendar | |
| entry | |
| error | |
| info | |
| file-selection | ✅ |
| list | |
| notification | |
| progress | |
| question | ✅ |
| warning | |
| scale | |
| text-info | |
| color-selection | |
| password | ✅ |
| forms | |

## Dependency

* `gtk+-3.0`

## Getting started

To build this application you need [Zig 0.11.0](https://ziglang.org/download/).
After installing Zig run the following commands to build the application:

```
git clone https://github.com/r4gus/zigenity.git
cd zigenity
zig build -Doptimize=ReleaseSmall
```

Run `zigenity --help` for a list of options.

This application uses the same return codes and options as [zenity](https://gitlab.gnome.org/GNOME/zenity), including:
* `0` - Ok button was pressed
* `1` - Cancel button was pressed
* `5` - Timeout (this is only returned when using the `--timeout` option)
* `255` - Some other error (e.g., no dialog type has been selected)