Kodi Community Forum

Full Version: Remove menu option from Home screen
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Below the Kodi logo on the top left, how can I remove an entire menu from those 3 there?I'd like to eliminate the power menu that holds the power off, suspend, exit and so forth.
The control you are looking for is in the Home.xml file. Search for control "id=700" which is a panel and then the power button control has an id of 804.
You could just take out the section between (and including):

<include content="IconButton">
     <param name="control_id" value="804" />
     ...
     <\include>

I haven't tested this but I hope this helps.
Note: There are 4 buttons in the control collection, but one is hidden (the fullscreen control) unless media is playing.

                <control type="grouplist" id="700">
                    <orientation>horizontal</orientation>
                    <itemgap>0</itemgap>
                    <left>-8</left>
                    <width>350</width>
                    <height>110</height>
                    <top>100</top>
                    <onup>SetFocus(9000)</onup>
                    <onup>PageDown</onup>
                    <onup>PageDown</onup>
                    <ondown>SetFocus(9000)</ondown>
                    <ondown>PageUp</ondown>
                    <ondown>PageUp</ondown>
                    <onright>2000</onright>
                    <align>justify</align>
                    <include content="IconButton">
                        <param name="control_id" value="804" />
                        <param name="onclick" value="ActivateWindow(shutdownmenu)" />
                        <param name="icon" value="icons/power.png" />
                        <param name="label" value="$LOCALIZE[33060]" />
                    </include>
                    <include content="IconButton">
                        <param name="control_id" value="802" />
                        <param name="onclick" value="ActivateWindow(settings)" />
                        <param name="icon" value="icons/settings.png" />
                        <param name="label" value="$LOCALIZE[21417]" />
                    </include>
                    <include content="IconButton">
                        <param name="control_id" value="801" />
                        <param name="onclick" value="ActivateWindow(1107)" />
                        <param name="icon" value="icons/search.png" />
                        <param name="label" value="$LOCALIZE[137]" />
                    </include>
                    <include content="IconButton">
                        <param name="control_id" value="803" />
                        <param name="onclick" value="Fullscreen" />
                        <param name="icon" value="icons/now-playing/fullscreen.png" />
                        <param name="label" value="$LOCALIZE[31000]" />
                        <param name="visible" value="Player.HasMedia" />
                    </include>
                </control>
            </control>
Hello,
what if I want the "power" button to do the "Suspend" action immediately without opening the "Shutdown" menu dialog? Can that be done?
What exactly do you mean by "suspend action " ?
If you edit this line 
 <param name="onclick" value="ActivateWindow(shutdownmenu)" />
to this
<param name="onclick" value="Suspend()" />
it will give you a black screen for a few seconds , but I can't see what that achieves and also how are you intending to exit kodi without a power button ?
When you press/click the "Power" button, menu is opened with options:
- Exit
-Shutdown
-Suspend
-...
(these may not be the exact menu options, I do not have kodi with me so cannot check)

What I want to do is to skip the menu and go directly to one of those options (e.g. Suspend).
Hibernate() may work better as it is a better way

<!---IconButton--> <include content="IconButton">
      <param name="control_id" value="804" />
      <param name="onclick" value="Hibernate()" />
      <param name="icon" value="icons/power.png" />
      <param name="label" value="$LOCALIZE[33060]" />
     </include>