Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/onox/weechat-canberra

A WeeChat plug-in written in Ada 2012 that plays sounds using libcanberra
https://github.com/onox/weechat-canberra

ada canberra weechat weechat-plugin

Last synced: about 2 months ago
JSON representation

A WeeChat plug-in written in Ada 2012 that plays sounds using libcanberra

Awesome Lists containing this project

README

        

[![Build status](https://github.com/onox/weechat-canberra/actions/workflows/build.yaml/badge.svg)](https://github.com/onox/weechat-canberra/actions/workflows/build.yaml)
[![License](https://img.shields.io/github/license/onox/weechat-canberra.svg?color=blue)](https://github.com/onox/weechat-canberra/blob/master/LICENSE)
[![Alire crate](https://img.shields.io/endpoint?url=https://alire.ada.dev/badges/weechat_canberra.json)](https://alire.ada.dev/crates/weechat_canberra.html)
[![GitHub release](https://img.shields.io/github/release/onox/weechat-canberra.svg)](https://github.com/onox/weechat-canberra/releases/latest)
[![IRC](https://img.shields.io/badge/IRC-%23ada%20on%20libera.chat-orange.svg)](https://libera.chat)
[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.svg)](https://gitter.im/ada-lang/Lobby)

# weechat-canberra

A [WeeChat][url-weechat] plug-in written in Ada 2012 that plays sounds
using Canberra when a message is received, your nick name is highlighted,
or when the client has (dis)connected to the IRC server.

If you are away (after 30 minutes of inactivity) then you will hear
the sound of an incoming phone call if a message is received between
07:00 and 21:00, otherwise the plug-in tells the sender that you will
be woken up around 07:00.

Uses the [weechat-ada][url-weechat-ada] and [canberra-ada][url-canberra-ada]
bindings.

## Dependencies

In order to build the plug-in, you need to have:

* An Ada 2012 compiler

* [Alire][url-alire]

* `make`

To use libcanberra, you need to have some backend installed:

* `libcanberra-pulse` for the PulseAudio backend

## Installation

A Makefile is provided to build the source code. Use `make` to build
the source code:

```
$ make
```

After having compiled the source code,
the plug-in can be installed to `~/.weechat/plugins/` by executing:

```
$ make install
```

## Contributing

Read the [contributing guidelines][url-contributing] if you want to add
a bugfix or an improvement.

## License

This plug-in is licensed under the [Apache License 2.0][url-apache].
The first line of each Ada file should contain an SPDX license identifier tag that
refers to this license:

SPDX-License-Identifier: Apache-2.0

[url-alire]: https://alire.ada.dev/
[url-apache]: https://opensource.org/licenses/Apache-2.0
[url-contributing]: /CONTRIBUTING.md
[url-weechat]: https://weechat.org/
[url-weechat-ada]: https://github.com/onox/weechat-ada
[url-canberra-ada]: https://github.com/onox/canberra-ada