GithubHelp home page GithubHelp logo

chanibal / toast Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 53 KB

Notification utility for Windows, WSL, and MacOS

License: MIT License

Shell 83.68% PowerShell 16.32%
bash hacktoberfest macos notification notification-utility popup terminal windows

toast's People

Contributors

chanibal avatar

Watchers

 avatar

toast's Issues

Plugin architecture

Outputs will be functions in a namespace, ex. echo the body | toast -o notification,mail "the message" executes toast_notification "the message" "the body" and toast_mail "the message" "the body".

Configuration file in $XDG_CONFIG_HOME/.toast should be sourced, any plugins should be placed there.
Note: if $XDG_CONFIG_HOME is unset, use ~/.config/ (source). Maybe some kind of TOAST_CONFIG override?

In the configuration file, both configuration and user plugins can be kept. Also some kind of override for the --outputs option.

Good ideas for plugins:

  1. notification (current)
  2. mqtt
  3. webhook (to simple to generalize? it might be easier to just write a curl handler)
  4. push (android push, some kind of default provider?)

Each plugin takes care of its own configuration, but its recommended to use the PLUGIN_TOAST_${PLUGIN_NAME}_${CONFIG_KEY} namespace. Ex for plugin mqtt some config might be: PLUGIN_TOAST_MQTT_USERNAME.

Add command line options

Add option for selecting outputs, ex. -o/--outputs with comma delimited list of outputs to be used.

Warn about too long toasts?

Currently they are silently trimmed. This is endpoint dependant.

Maybe some standard length after which a warning is issued?

Linux version?

To be considered, probably using notify-send or zenity.

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.