[Github-comments] [geany/geany] Hide Menu Bar (#633)

ralf3u notifications at xxxxx
Sat Feb 5 14:29:01 UTC 2022


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.lua
- 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/cleanup.lua
- 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.lua
- 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

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/633#issuecomment-1030634638
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/633/1030634638 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220205/852a4ead/attachment.htm>


More information about the Github-comments mailing list