libnotify
Version, currently 0.3.15 versions
- 0.4.0latestAug 12, 2021
- 0.3.2not indexedAug 12, 2021
- 0.3.1not indexedAug 12, 2021
- 0.3.0not indexedAug 12, 2021
- 0.2.0not indexedAug 12, 2021
github.com/splattael/libnotify.cr
Libnotify for Crystal
26 stars
0 dependents
License: MIT
Nothing has been indexed for 0.3.1 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
libnotify:
github: splattael/libnotify.cr
version: ~> 0.3.1Then run:
shards installshard.yml
No shard.yml has been indexed for 0.3.1. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
Documentation
Generated from the source of the current release. The first visit to a release that has never been documented starts its build.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# Libnotify for Crystal
[](https://travis-ci.org/splattael/libnotify.cr)
[](http://crystalshards.xyz/?filter=libnotify)
Bindings for [GNOME's Libnotify](https://developer.gnome.org/libnotify/).
For the Ruby version see https://rubygems.org/gems/libnotify.

## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
libnotify:
github: splattael/libnotify.cr
version: ~> 0.4.0
```
### Linux
```
apt-get install libnotify # debian
pacman -S libnotify # archlinux
dnf install libnotify # fedora
```
## Usage
```crystal
require "libnotify"
n = Libnotify.show do |notify|
notify.summary = "hello"
notify.body = "world"
notify.timeout = 1.5
notify.timeout = 1500
notify.urgency = :critical # :low, :normal, :critical
notify.append = false # default true
notify.transient = true # default false
notify.icon_path = "/usr/share/icons/gnome/scalable/emblems/emblem-default.svg"
end
n = Libnotify.new(summary: "big", body: "body text").show
sleep 1
n.body = "hello world"
n.update.show
```
## Development
```
$ make update
$ make spec
```
### Linux
```
apt-get install libnotify-dev # debian
pacman -S libnotify # archlinux
dnf install libnotify # fedora
```
### Generate libnotify/c.cr
```
$ git clone https://github.com/crystal-lang/crystal_lib
$ cd crystal_lib
$ apt install libclang-dev
$ shards install && make
$ ./main < ../libnotify.cr/crystal_lib/libnotify.cr > ../libnotify.cr/src/libnotify/c.cr
```
## Contributing
1. [Fork it](https://github.com/splattael/libnotify.cr/fork)
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Release
* Make sure `make spec` is green
* Commit all changes
* Bump version in `src/libnotify/version.cr`
* Adjust version in `README.md` and `shard.yml`
* `make release`
## Contributors
- [splattael](https://github.com/splattael) Peter Leitzen - creator, maintainer
- [Nephos](https://github.com/Nephos) Arthur Poulet - contributor
- [brodi1](https://github.com/brodi1) Brodi - contributor
Links
This release
- Version
0.3.1- Tagged
- Aug 12, 2021
- Commit
888c1a159f45- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/splattael/libnotify.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 5