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: - in the terminal: `sudo apt install geany-plugins` - in Geany: go in the menu-bar, click on `Tools` and click on `Plugin Manager` - there activate `Lua Script` - close the Plugin-Window - create in the filemanager in `.config/geany/plugins` the folder `geanylua` if no `geanylua`-folder exits - create in the filemanager in `.config/geany/plugins/geanylua` the folder `events` <br><br> - visit https://github.com/xiota/geanylua-scripts/blob/main/toggle-menu/toggle-menu.... - click on Raw - copy the entire code with ctrl+A and ctrl+C - paste it in the editor and save it with the name `toggle-menu.lua` in `.config/geany/plugins/geanylua` <br><br> - visit https://github.com/xiota/geanylua-scripts/blob/main/toggle-menu/hotkeys.cfg - click on Raw - copy the entire code with ctrl+A and ctrl+C - paste it in the editor and save it with the name `hotkeys.cfg` in `.config/geany/plugins/geanylua` <br><br> - visit https://github.com/xiota/geanylua-scripts/blob/main/toggle-menu/events/clean... - click on Raw - copy the entire code with ctrl+A and ctrl+C - paste the content in the editor and save it with the name `cleanup.lua` in `.config/geany/plugins/geanylua/events` <br><br> - visit https://github.com/xiota/geanylua-scripts/blob/main/toggle-menu/events/init.... - click on Raw - copy the entire code with ctrl+A and ctrl+C - paste the content in the editor and save it with the name `init.lua` in `.config/geany/plugins/geanylua/events` <br><br> - in the menu-bar in `Edit` click on `Preferences`; click on `Keybindings`; in the column `Action`, in `Lua Script` (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 `Toggle menu`; click on the marked line in the column `Shortcut`; type for example F12; press enter, click on `Apply` and `OK`
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 `init.lua` the line `start_action = "hide"` to `start_action = "show"`. Close Geany and then restart Geany.
For more informations visit https://github.com/xiota/geanylua-scripts
github-comments@lists.geany.org