Code Monkey home page Code Monkey logo

notify-desktop's Introduction

notify-desktop

Little application that lets you send desktop notifications with one command. It's basically clone of notify-send from libnotify, but it supports reusing notifications on screen by passing its ID. It also does not use any external dependencies (except from libdbus of course).
I wrote it because I needed to reuse notifications on screen in my scripts.

Compiling

Build dependencies are only pkg-config and libdbus.

$ make
$ sudo make install

Usage

From notify-desktop --help:

Usage: notify-desktop [OPTION...] <SUMMARY> [BODY]

Options:
   -r, --replaces-id=ID        Specifies the notifications ID that will be replaced
   -u, --urgency=LEVEL         Specifies the urgency level (low, normal, critical)
   -t, --expire-time=TIME      Specifies the timeout in milliseconds to expire the notification
   -a, --app-name=APP_NAME     Specifies the app name for the icon
   -i, --icon=ICON             Specifies an icon filename or stock icon to display
   -c, --category=TYPE         Specifies the notification category

ID of sent notification is written into standard output.

Examples:

notify-desktop "Minimal notification"

notify-desktop --icon=call-start "Incoming call"

notify-desktop -i down -u low "Low urgency" "Body of low urgency notification"

Example bash functions that use --replaces-id option can be found in doc/ directory.

notify-desktop's People

Contributors

clehner avatar ndagestad avatar nowrep avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

notify-desktop's Issues

notify-desktop kills dunst and xfce4-notification-daemon

Receiving a notification message from notify-desktop causes both dunst and xfce4-notification-daemon to segfault. It seems to happen regardless of arguments to notify-desktop.

Thanks for trying to raise the water level for non-DE users! ๐Ÿ‘

Getting "-r and -R are incompatible options" despite not using -R

$ notify-desktop -i down -u critical "critical subject" "critical body"
4
$ notify-desktop -i down -r 4 "critical subject" "new body"
-r and -R are incompatible options

Did the introduction of -R break -r? Or am I doing something wrong?

Testing on Manjaro KDE with latest updates

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.