Giter VIP home page Giter VIP logo

tclnotify's Introduction

libnotify shim in CriTcl

(Dunno what I'm calling this. Lnotify? Critnotify? Critballoon? Tcl notify-send? GNOME Balloons for CriTcl?)

Requirements:

  • Critcl

Requirements additional for example script

  • ffmpeg (or set your own audio player in rnotifyd.conf)
  • weechat with wc-rnotify.tcl or another client program
  • A pair of speakers (not necessary if "your own audio player" is flashing a lamp rather than playing audio)

Usage

Source from your script. Use commands under "notify":

notify sum-msg [summary char*] [message char*]
notify sum-msg-icon [summary char*] [message char*] [iconname char*]
notify sum-msg-icon-exp [summary char*] [message char*] [iconname char*] [expiry int]
notify initialise
notify uninitialise

Internal. You can use it, but don't be surprised if it conks you out. Should be more or less self-explanatory. sum-msg(-icon(-exp)) - Send a notification balloon. Message is HTML-formatted char* data.

notify send [summary char*] [message char*] ([iconname optional without expiry char*] [expiry optional int]

Send a notification balloon. Message is HTML-formatted char* data.

Example script:

A server for issuing balloons is included. Syntax:

telnet localhost 51001

b <base64 encoded summary> <base64 encoded message>

Send balloon.

q

Disconnect.

Default icon is the weechat icon. Change as needed.

Also included is an example script for using this example script. Fittingly, it is a weechat plugin script.

rnotifyd.tcl

See rnotifyd.conf.

synthchime.ogg

I made this myself in LMMS. It is also under the MIT license. It's not software, but it's part of the example script.

You should credit me for it. It's really not significant art though. It's a less-than-a-second-long chime.

tclnotify's People

Contributors

janicez avatar

Watchers

James Cloos avatar  avatar

Forkers

estella

tclnotify's Issues

No Makefile or similar build system

I created this project without a makefile because I assumed those who desired to use the notifyc.tcl would use it the way I have - compile on demand, sourced from wherever you've installed it, with a configure script to tell your program where mine is.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.