Skip to content

Instantly share code, notes, and snippets.

@bmcculley
Created April 4, 2015 13:54
Show Gist options
  • Save bmcculley/b99a839f5089785e2c22 to your computer and use it in GitHub Desktop.
Save bmcculley/b99a839f5089785e2c22 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
#-*- coding: utf-8 -*-
import subprocess
def sendmessage(message):
subprocess.Popen(['notify-send', message])
return
sendmessage('Hello OSD This is my first programmatic OSD notification')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment