The Nokia N900 Blog |
| How to add extra commands in your power key menu? Posted: 31 Mar 2011 11:41 AM PDT Today I’m going to show you how to add extra commands in the power key menu on the N900 itself. This would be a shortcut to alot of people using the X-Terminal with the common commands every time they launch the X-Terminal.
One good example would be starting the X-Terminal automatically in “sudo gainroot” mode without having to type sudo gainroot. So first type this in your X-Terminal in sequence
You would see lines of codes. Don’t be afraid if you’re not familiar with any of these codes. Just remember not to mess any with the existing ones. Go down until you have a empty space one line before </powerkeymenu>. The following is a template to get you started <menuitem priority=” any number you prefer as this determines position of button” name= “any name you want here“> <callback service=”com.nokia.xterm” path=”/com/nokia/xterm” interface=”com.nokia.xterm” method=”run_command” bus=”session” autostart=”true”> <argument type=”string”> Type any command you want here but only one command</argument> </callback> </menuitem> This would create a shortcut to directly launch the X-Terminal with a custom command given to it. For example if the above command were “sudo gainroot”, clicking on the shortcut in the power key menu would launch X-Terminal and directly type “sudo gainroot” for you without you typing it. It could be useful to alot of people who are using the “sudo gainroot” command everyday day in day out. Till next and stay tune for more tips and tricks for the N900 |
| You are subscribed to email updates from Nokia N900 Blog | Apps | Games | Themes | Wallpapers | Hacks To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
| Google Inc., 20 West Kinzie, Chicago IL USA 60610 | |





