<p></p>
<p dir="auto">Here a step-by-step description how to make it that one can toggle show/hide menu-bar with one shortcut, what can be realized in about 5 minutes:</p>
<ul dir="auto">
<li>in the terminal: <code>sudo apt install geany-plugins</code></li>
<li>in Geany: go in the menu-bar, click on <code>Tools</code> and click on <code>Plugin Manager</code></li>
<li>there activate <code>Lua Script</code></li>
<li>close the Plugin-Window</li>
<li>create in the filemanager in <code>.config/geany/plugins</code> the folder <code>geanylua</code> if no <code>geanylua</code>-folder exits</li>
<li>create in the filemanager in <code>.config/geany/plugins/geanylua</code> the folder <code>events</code><br>
<br><br></li>
<li>visit <a href="https://github.com/xiota/geanylua-scripts/blob/main/toggle-menu/toggle-menu.lua">https://github.com/xiota/geanylua-scripts/blob/main/toggle-menu/toggle-menu.lua</a></li>
<li>click on Raw</li>
<li>copy the entire code with ctrl+A and ctrl+C</li>
<li>paste it in the editor and save it with the name <code>toggle-menu.lua</code> in <code>.config/geany/plugins/geanylua</code><br>
<br><br></li>
<li>visit <a href="https://github.com/xiota/geanylua-scripts/blob/main/toggle-menu/hotkeys.cfg">https://github.com/xiota/geanylua-scripts/blob/main/toggle-menu/hotkeys.cfg</a></li>
<li>click on Raw</li>
<li>copy the entire code with ctrl+A and ctrl+C</li>
<li>paste it in the editor and save it with the name <code>hotkeys.cfg</code> in <code>.config/geany/plugins/geanylua</code><br>
<br><br></li>
<li>visit <a href="https://github.com/xiota/geanylua-scripts/blob/main/toggle-menu/events/cleanup.lua">https://github.com/xiota/geanylua-scripts/blob/main/toggle-menu/events/cleanup.lua</a></li>
<li>click on Raw</li>
<li>copy the entire code with ctrl+A and ctrl+C</li>
<li>paste the content in the editor and save it with the name <code>cleanup.lua</code> in <code>.config/geany/plugins/geanylua/events</code><br>
<br><br></li>
<li>visit <a href="https://github.com/xiota/geanylua-scripts/blob/main/toggle-menu/events/init.lua">https://github.com/xiota/geanylua-scripts/blob/main/toggle-menu/events/init.lua</a></li>
<li>click on Raw</li>
<li>copy the entire code with ctrl+A and ctrl+C</li>
<li>paste the content in the editor and save it with the name <code>init.lua</code> in <code>.config/geany/plugins/geanylua/events</code><br>
<br><br></li>
<li>in the menu-bar in <code>Edit</code> click on <code>Preferences</code>; click on <code>Keybindings</code>; in the column <code>Action</code>, in <code>Lua Script</code> (should be somewhere at the end of the list; if it is not in the list, then Geany need to be closed and restarted), mark <code>Toggle menu</code>; click on the marked line in the column <code>Shortcut</code>; type for example F12; press enter, click on <code>Apply</code> and <code>OK</code></li>
</ul>
<p dir="auto">Now after every restart, the menu-bar will not be there any more. In this example one can toggle show/hide menu-bar with the shortcut F12. If you want that after every restart of Geany the menu-bar is visible at the beginning, then change in the document <code>init.lua</code> the line <code>start_action = "hide"</code> to <code>start_action = "show"</code>. Close Geany and then restart Geany.</p>
<p dir="auto">For more informations visit <a href="https://github.com/xiota/geanylua-scripts">https://github.com/xiota/geanylua-scripts</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/633#issuecomment-1030634638">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJY3OEVSXI7UV6SXL2TUZUX23ANCNFSM4BOSQ3PQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJ6UXSNSOZPPICZWRHLUZUX23A5CNFSM4BOSQ3P2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHVXDZDQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><geany/geany/issues/633/1030634638</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/633#issuecomment-1030634638",
"url": "https://github.com/geany/geany/issues/633#issuecomment-1030634638",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>