Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 [2] 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Turn off CPU usage & other status?, Is this slitlist?  No, not that... ;-)< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: June 06 2006,03:10 QUOTE

That's kinda interesting to have scripts to control torsmo.  Since you're interested I thought I'd add that you could do both in a single script rather than having separate files.....
Code Sample

#!/bin/bash
case $1 in
on|start) exec torsmo;;
off|stop) killall torsmo;;
restart) killall torsmo && exec torsmo;;
esac

I know it could be done more cleanly than that, but it's one option.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
kerry Offline





Group: Members
Posts: 706
Joined: April 2006
Posted: June 06 2006,03:38 QUOTE

uhmm, i tried your script, cause that would be really cool to just use one icon, but it's not working. ???
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: June 06 2006,04:08 QUOTE

oh...i guess it wouldn't work from an icon unless you added a right-click menu to it.  This script requires a parameter of on/start, off/stop, or restart.

for example, you could have your main icon command be "/path/to/script start", which would start torsmo, and have a right-click menu to stop or restart torsmo.

Then again, you don't even need the script if you want to control trosmo this way.  You could have your icon look something like this:
blah
blah
blah
Command: torsmo
MenuCommand1: Stop Torsmo:killall torsmo
MenuCommand2: Restart Torsmo:killall torsmo ; torsmo


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
kerry Offline





Group: Members
Posts: 706
Joined: April 2006
Posted: June 06 2006,04:41 QUOTE

Darn, im using rox pinboard for my desktop. I haven't i figured out how to add a right click menu to that yet. :p
But yeah for xtdesk that would be a sinch.

Edit: I guess i could always use both(rox pin and xtdesk).  :D
both pic->
http://img222.imageshack.us/img222/9443/19yq.png

Actually i've become very minimal lately, right now i only have the firefox launcher on the desktop and everything else is in the wmdrawer hidden on the right center.  ???
My current->
http://img118.imageshack.us/img118/8836/current3nz.png
Back to top
Profile PM 
300c_pilot Offline





Group: Members
Posts: 217
Joined: Dec. 2005
Posted: June 06 2006,09:35 QUOTE

Is there a windows version of  torsmo?

--------------
300c_Pilot
Boise, Idaho
Back to top
Profile PM WEB 
13 replies since May 16 2006,23:17 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 [2] 3 >/
reply to topic new topic new poll
Quick Reply: Turn off CPU usage & other status?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code