Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/r4gus/zigenity
- Owner: r4gus
- License: mit
- Created: 2024-03-03T15:07:13.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-07-23T18:09:09.000Z (7 months ago)
- Last Synced: 2024-12-12T15:09:15.919Z (about 2 months ago)
- Topics: gtk, gtk3, gui, zig, zig-package
- Language: Zig
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
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)