Closed ralf3u closed 3 years ago
In response to your question about running GeanyLua commands from the terminal, I don't think it's possible without modifying the GeanyLua plugin and possibly also Geany.
About having to press the shortcut twice, did you copy the files from the events
folder to .config/geany/plugins/geanylua/events
?
The script does not currently save its state between restarts. It would have to be modified to do so.
..., did you copy the files from the events folder to ....
I can't find the events folder.
I've added instructions to /events/init.lua about how to start with the menu hidden.
Should I put init.lua in .config/geany/plugins/geanylua/events/? I did that, but after a restart Geany has a problem.
@ralf3u Can you describe the problem Geany is having? I've changed the script to save the menu state across Geany restarts.
Can you describe the problem Geany is having? I've changed the script to save the menu state across Geany restarts.
OK, I will do that now.
But meanwhile:
..., did you copy the files from the events folder to ....
I can't find the events folder.
Should I put the files cleanup.lua and init.lua in .config/geany/plugins/geanylua? If yes, issue 2 still occurs.
The best would be for me that after every restart of Geany the menu-bar is hidden, with the option to toggle with a shortcut the menu-bar at any time.
@ralf3u
I can't find the events folder.
GeanyLua makes users do a lot on their own. You have to create any folders that don't exist. .config/geany/plugins/geanylua/events
The best would be for me that after every restart of Geany the menu-bar is hidden...
I've modified the script again so that you can edit events/init.lua
to select what the script will do on startup.
What I did in the last minutes:
But the issues are still the same, and even worst, because before Geany appears, there is a mistake-window:
I think that in int.lua is the problem, because after the mistake-window appears, and if I click there on "Open", Geany opens and only init.lua is open.
After every start of Geany the menu-bar is visible, although it should be hidden after every restart.
@ralf3u Lua cannot find the file because the name of the script it's looking for is toggle-menu.lua
, with a dash, not an underscore.
@xiota Shame on me! I'm sorry for my mistake. Now the two issues mentioned on top of this report do not exist any more.
But if I let appear the menu-bar and then if I close Geany and then reopen Geany, then there is again the menu-bar. Well, I would prefer that Geany starts always with the hidden menu-bar. For having this behavior: Can it be that I need only to change in the document ini.lua the lines down below?
action = "startup" to action = "hide"
@ralf3u Changing action = "startup"
to action = "hide"
will do what you want. That is the purpose of that line.
@xiota Thank you so much for your scripts. It works perfect for me. It is exactly that what I was looking for.
@ralf3u Glad it's working for you now. If you're interested, here's another plugin I've been working on: geany-preview
@xiota I wanted to share with you a screenshot of my Geany, how beautiful and minimalist it is now:
The image shows the whole window.
@ralf3u It's good to know that script is being put to use... Do you really not even have a title bar either?
@xiota I see no point in using a title-bar. I disabled it in Lubuntu in the document lxqt-rc.xml that is located in .config/openbox. 6 lines before the end of the document I added those lines:
<application class="Geany"><decor>no</decor></application>
I also changed the color of the unsaved document-name, what you can see in the picture above, because the default color is too strong for me.
@ralf3u One of Linux's strong points is how customizable it is. I use kde plasma and xfce with the title bar set to hide when windows are maximized. I keep the title bars n windowed mode because they're familiar and provide a convenient place to grab to move windows around.
@xiota
[...] the title bars [...] provide a convenient place to grab to move windows around.
For that I use shortcuts in combination with the windows-key that I defined in lxqt-rc.xml, so I don't need to grab: W+arrow-left: window to the left W+arrow-right: window to the right W+arrow-top: window to the top W+arrow-bottom: window to the bottom W+return: maximize the window
Firefox can be grabbed without the title-bar by grabbing the tab-bar, if there are not too many tabs open and if the window is not maximized. Also Geany can be grabbed without the title-bar by grabbing the menu-bar, if the window is not maximized, at least in Lubuntu 21.04.
@ralf3u
I tend to have most programs maximized. The main exception is the file manager to drag and drop files into other applications.
Also Geany can be grabbed without the title-bar by grabbing the menu-bar...
Except that now you have the menu hidden =)
Xfce and plasma both have global menus, so the menu can be hidden and shown elsewhere.
issue 1 When I restart the computer and I open Geany for the first time and if I press F12 nothing happens (my shortcut is F12 to toggle the menu-bar). Then after the second press of F12 it works fine, so the menu-bar appears and disappears after each press of F12.
issue 2 The same issue happens when the menu-bar is not there any more and then I close Geany. After a restart of Geany I need to press two times F12 to let disappear the menu-bar. Then the menu-bar appears and disappears after each press of F12.
Geany 1.37.1, Lubuntu 21.04