Popularity
6.0
Declining
Activity
0.0
Stable
25
5
3
Programming language: Crystal
License: MIT License
Tags:
Low Level Bindings
Latest version: v0.3.2
libnotify.cr alternatives and similar shards
Based on the "Low level bindings" category.
Alternatively, view libnotify.cr alternatives based on common mentions on social networks and blogs.
-
magickwand-crystal
Crystal C bindings for MagickWand library -
termbox-crystal
Bindings, wrapper, and utilities for termbox (terminal interface library) in Crystal -
java.cr
Java Native Interface (JNI) bindings (and generator) for Crystal -
wkhtmltopdf-crystal
Crystal C bindings and wrapper for libwkhtmltox library -
serialport.cr
Crystal bindings for libserialport: cross-platform library for accessing serial ports. -
crystal-liblmdb
Crystal language bindings for the Symas LMDB database
Learn any GitHub repo in 59 seconds
Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.
Promo
getonboard.dev
Do you think we are missing an alternative of libnotify.cr or a related project?
README
Libnotify for Crystal
Bindings for GNOME's Libnotify.
For the Ruby version see https://rubygems.org/gems/libnotify.
Installation
Add this to your application's shard.yml
:
dependencies:
libnotify:
github: splattael/libnotify.cr
version: ~> 0.3.2
Linux
apt-get install libnotify # debian
pacman -S libnotify # archlinux
dnf install libnotify # fedora
Usage
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
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- 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
andshard.yml
make release