[ubuntu-us-ma] What do you think of this script? (singleton.py)

felicia wichrowski felicia02652 at gmail.com
Wed Sep 23 13:11:39 BST 2009


Dan that is cool, I don't have the skills to implement a .py file, but I
would try it out someday when I have learned how!

On Tue, Sep 22, 2009 at 9:37 PM, Daniel Hollocher <danielhollocher at gmail.com
> wrote:

> Hi all,
> There is a feature that I wanted in Ubuntu, and I managed to start a
> script that makes it happen.  Basically, I wanted to have keyboard
> shortcuts that didn't just open programs, it would close programs too.
>  For example, I don't need my gmail open more than once.  But, I can
> lose the tab where it is open, so I can end up with 3 or 4 firefox
> tabs with gmail open, which just clutters up my workspace.  The way I
> have it setup now, when I click the shortcut and the window of gmail
> is already open, gmail is closed.
>
> Click button once, open program.  Click button again, close it.
> (personally, I wish this was just a part of gnome)
>
> To use the script, just put it in a folder where it can have write
> access, and then run the script with the program you want to run as an
> argument.  I have it setup of course, with a keyboard shortcut.
>
> I've tested with gcalctool and firefox.  Support for firefox is very
> hacky.  It's really the only way, but I want to give you fair warning.
>  The script avoids the default profile and creates a new profile to do
> its work, so your settings should be ok.  The tricky thing is getting
> it to run separate, and then closing it.
>
> If you think it's cool, let me know!  And maybe I will post it to a
> wider audience.
>
> Dan
>
> --
> In science and in mind, the impossible and the hasn't-happened-yet are
> indistinguishable.
>
> --
> Ubuntu-us-ma mailing list
> Ubuntu-us-ma at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-ma
>
>


-- 
Felicia

CapesTreasures.com  now on Facebook
CatLadyDiary.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-us-ma/attachments/20090923/85a06c83/attachment-0002.htm 


More information about the Ubuntu-us-ma mailing list