Created
April 21, 2011 03:05
-
-
Save kazuhisya/933618 to your computer and use it in GitHub Desktop.
Resides in the system tray just to start the Gnome-terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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