Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Switch desktops in Desktop Manager via a physical touch' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Switch desktops in Desktop Manager via a physical touch
Authored by: ghay on Dec 15, '06 04:10:29AM

Perhaps you misunderstand this hint, the code you get is exactly what you are looking for, just ignore all the code injection in DesktopManager and have the perl script play a sound file instead.



[ Reply to This | # ]
Switch desktops in Desktop Manager via a physical touch
Authored by: ghay on Dec 15, '06 04:19:29AM
Specifically, change this line in the perl

system "./notify SwitchTo${foo}Workspace\n";

to be a terminal command to play your sound file.

[ Reply to This | # ]
Switch desktops in Desktop Manager via a physical touch
Authored by: qrulf on Dec 15, '06 12:06:03PM
I liked the idea about the computer complaining, when smacked, so I began looking for a simple player that could be used from the commandline. I ended up with Play Sound (free):
http://microcosmsoftware.com/playsound/

I must admit I was looking for a text-based player, but Play Sound seems like an ok solution for now. If anyone knows a better/ fast commandline player I would like to know about it :-)

The line in the smackbook perl-script should then look something like:
system "open -a '/Applications/Play Sound.app' 'path-to-your-sound' &";

~ Jørgen

[ Reply to This | # ]
Switch desktops in Desktop Manager via a physical touch
Authored by: qrulf on Dec 16, '06 07:00:44AM

It might be noted that the AMSTracker application with an update interval of 0.01 seconds, will take up about 17% (measured in top) of my Core 2 Duo 2ghz processor... Might not be such a good idea anyway :-/

~ Jørgen



[ Reply to This | # ]