![]() |
2012-11-21
, 14:51
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#882
|
Due to save energy
The Following User Says Thank You to ajalkane For This Useful Post: | ||
![]() |
2012-11-21
, 16:04
|
Posts: 335 |
Thanked: 285 times |
Joined on Sep 2012
@ Trento, Italy
|
#883
|
![]() |
2012-11-21
, 16:24
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#884
|
sh -c "echo rootme |*devel-su -c '/sbin/initctl restart xsession/icd2'"
mkdir /home/user/scripts
#!/bin/sh if [ $# -ne 1 ] then echo "Usage: $0 command" exit 1 fi echo rootme | devel-su -c "$1"
chmod a+rx /home/user/scripts/execroot.sh
sh /home/user/scripts/execroot.sh /sbin/reboot
![]() |
2012-11-21
, 16:29
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#885
|
#!/bin/sh sleep_stop=10 sleep_start=10 echo Sleeping $sleep_stop seconds before stop bme sleep $sleep_stop stop=$(/sbin/stop bme) # Following is used to show a notification. Remove or comment out the line if you don't like it dbus-send --print-reply --dest=com.meego.core.MNotificationManager/notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"$stop" string:'' string:'' uint32:0 echo Sleeping $sleep_start seconds before start bme sleep $sleep_start start=$(/sbin/start bme) # Following is used to show a notification. Remove or comment out the line if you don't like it dbus-send --print-reply --dest=com.meego.core.MNotificationManager/notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"$start" string:'' string:'' uint32:0
chmod a+rx /home/user/scripts/restartbme.sh
sh -c "echo rootme | devel-su -c /home/user/scripts/restartbme.sh
sh /home/user/scripts/execroot.sh /home/user/scripts/restartbme.sh
![]() |
2012-11-21
, 16:33
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#886
|
Hi guys, I'm not able to run this script: http://talk.maemo.org/showpost.php?p...&postcount=825. I put the battery.sh file in /home/user/scripts/battery.sh and then added "sh /home/user/scripts/battery.sh" as custom action but it doesn't work. Did I forget something?
![]() |
2012-11-21
, 16:39
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#887
|
The Following User Says Thank You to ajalkane For This Useful Post: | ||
![]() |
2012-11-21
, 16:45
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#888
|
~ $ grep -l Maps /usr/share/applications/* /usr/share/applications/maps.desktop /usr/share/applications/mapsi.desktop
xdg-open /usr/share/applications/maps.desktop
![]() |
2012-11-21
, 17:08
|
Moderator |
Posts: 5,320 |
Thanked: 4,464 times |
Joined on Oct 2009
|
#889
|
I have started to collect some "recipes" to help people with custom actions (but other kind of condition/action combinations are welcome too). I intend to list them to the first post for easy reference. I know there's been quite a few people have done.
So for common good I do want to collect them for easy reference. So if you have some good recipes, please post them here. Just try to make them as easy and straightforward as possible. Perhaps see examples written by me, and if there's a problem in my examples let me know and I'll correct them.
The Following User Says Thank You to jalyst For This Useful Post: | ||
![]() |
2012-11-21
, 17:10
|
Posts: 335 |
Thanked: 285 times |
Joined on Sep 2012
@ Trento, Italy
|
#890
|
See post http://talk.maemo.org/showpost.php?p...&postcount=885
Let me know if there's a problem.
Due to save energy