maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Widget\Shortcut to run X-Terminal commands (https://talk.maemo.org/showthread.php?t=49934)

nokian-series 2010-04-13 18:32

Widget\Shortcut to run X-Terminal commands
 
Hi all,
Is there any application or workarround to create a widget\shortcut\Icon that runs the code you want on x-terminal (hide) ?

This will make users to be able to run it own things without have to open x-terminal. Create some 'mini applications'.

Two pratical examples:

-Reason: Whatever you want. Phone is slowing down, i.e.
-Name: Reboot
-Just create an image to the icon (a Square with an R, i.e.)
-Just create it code (restart)
So, we have our icon on the desktop, when we click it, no x-terminal opens, but the phone reboots.

-Reason: Go to launch Easy Debian! i.e.
-Name: IncreaseMaxFreq
-Just create an image to the icon (a CPU with an Up arrow, i.e.)
-Just create it code (sudo gainroot)
echo 1000000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq)
So, we have our icon on the desktop, when we click it, no x-terminal opens, but the increase max_cpu_frequency.


Of course the code needs more lines like how to invoque and close x-terminal process and make other lines run there.

This is just an idea, i searched about it but dont have lucky so..
What do you think. Stupid idea, actualy that is possible or this is a thing to developers only?

Regards.

antoarts 2010-04-13 18:37

Re: Widget\Shortcut to run X-Terminal commands
 
Here

Be careful with reboot style stuff as scripts are run on boot

nokian-series 2010-04-13 18:42

Re: Widget\Shortcut to run X-Terminal commands
 
Auch...English English..so..'Scripts" ..

Well, thank you, i thing i've i read that entire page i'll get my stuff work.

Good job.

Can anyone close this thread?

Patola 2010-04-13 18:45

Re: Widget\Shortcut to run X-Terminal commands
 
Besides Desktop Command Widget, there's a fork that is more colorful and flexible called Queen Beecon Widget.

nokian-series 2010-04-13 18:46

Re: Widget\Shortcut to run X-Terminal commands
 
Quote:

Originally Posted by nokian-series (Post 609108)
Auch...English English..so..'Scripts" ..

Well, thank you, i thing i've i read that entire page i'll get my stuff work.

Good job.

Can anyone close this thread?

Close...or not lol :eek:

There are many scripts, with respective code, ok.
But..how i apply it?
Create a file with no extension and put it at a directory..i think..but how is the desktop icon created ? Hum..strange thing..

Reading so much english is driving me crazy :confused:

With Desktop Command Widget the script is allways running or not?
It can be configured to run only when clicked?

xomm 2010-04-13 20:08

Re: Widget\Shortcut to run X-Terminal commands
 
Quote:

Originally Posted by nokian-series (Post 609112)
Reading so much english is driving me crazy :confused:

With Desktop Command Widget the script is allways running or not?
It can be configured to run only when clicked?

You can configure it to

(On/Off) Update when clicked
(On/Off) Update when switched to desktop
Update Interval: (Time in minutes, 0 = Manual updating only)

P.S.: Here at talk.maemo.org, you'll be reading quite a bit of english. ;)


All times are GMT. The time now is 17:28.

vBulletin® Version 3.8.8