Skip to content

Instantly share code, notes, and snippets.

@kazuhisya
Created April 21, 2011 03:05
Show Gist options
  • Save kazuhisya/933618 to your computer and use it in GitHub Desktop.
Save kazuhisya/933618 to your computer and use it in GitHub Desktop.
Resides in the system tray just to start the Gnome-terminal
#!/usr/bin/python
#-*- coding:utf-8 -*-
import pygtk
import gtk
import os
def tray_activate(event):
os.system("gnome-terminal &")
tray = gtk.StatusIcon()
tray.set_title("gnome-terminal")
tray.set_from_file("/usr/share/icons/gnome/16x16/apps/gnome-terminal.png")
tray.connect('activate', tray_activate)
gtk.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment