Skip to content

Instantly share code, notes, and snippets.

@mrtc0
Created April 2, 2016 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrtc0/e2eabd381c564c7c62ff04cceb305bf2 to your computer and use it in GitHub Desktop.
Save mrtc0/e2eabd381c564c7c62ff04cceb305bf2 to your computer and use it in GitHub Desktop.
Desktop Notification
#!/usr/bin/python
from gi.repository import Notify
Notify.init ("Hello world")
Hello=Notify.Notification.new ("Hello world","This is an example notification.","dialog-information")
Hello.show ()
!#/bin/bash
notify-send 'Hello world!' 'This is an example notification.' --icon=dialog-information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment