You are not logged in.
Sounds like it’s sorted. Thanks.
Offline
^ @misko_2083 - Sorry, I had missed that post. Not sure what you've done there, but looks cool.
Just to say that jgmenu v3.0 has been released and is in the backports.
v3.0 release notes
v2.2 release notes
Here are a couple of things worth trying (works on Helium/stretch):
jgmenu init --theme=bunsenlabs_lithium
It's worth installing some xdg menu files if you want to see system applications ordered by directory:
sudo apt-get install lxmenu-data
Then launch the menu with `jgmenu_run`
I welcome any feedback on the proposed lithium menu. The theme (colours, etc) itself is just a copy from that of helium and on the surface it looks the same. However:
It's not the built-in openbox menu, it's jgmenu (i.e. not just different content - a different application altogether)
We have a search box at the top. Just type to search.
Halfway down we have 'Applications'. This shows your installed applications (those with .desktop files). It will automatically update when new apps are installed.
Although it's configured to start at the pointer (just as the built-in openbox menu), it will snap to the panel / edge if launched with a tint2 button
It's easy to build translation files for this menu (see previous post in this thread)
I recommend trying some different themes too - it'll give you a feel for the app.
jgmenu init --theme=greeneye
jgmenu init --theme=archlabs_1803
Last edited by malm (2019-05-20 20:51:00)
Offline
@misko wow. Would you mind letting us in on the inner secrets of you did that?
Offline
Wow misko...that looks like some great work and Malm has to be amazed!
Real Men Use Linux
Offline
@misko awesome! I’ll be installing panels tonight to check this out.
Offline
^ https://www.youtube.com/watch?v=pYL6g_Dw_4U
I'm hoping when there are ways to integrate jgmenu into mainsteam panels, more people will contribute to this menu. Who knows, some future GUI to easily configure jgmenu would be very usefull and would work across the DE's and panels.
Useful for those distros that offer several DEs.
One menu to rule them all. ]:DJgmenu has advantages comparing to other menus in those panels.
Hope it will have an option to follow gtk/qt theming some day.
Yup, with such features jgmenu will be the biggest killer app
Real Men Use Linux
Offline
@misko
The plugins seem to work fine provided:
- we set "at_pointer = 1" in jgmenurc
- launch using jgmenu_run
Let me attempt to explain how it works. For the purposes of terminology, I'll assumem we're using a horizontal panel.
- Vertically we align to the edge of the panel by reading _NET_WORKAREA (a freedesktop EWMH root window property).
- Horizontally we use the pointer X co-ordinate, which is why the menu is not aligned to the left/right hand edge of the button.
During early development of jgmenu, @o9000 and I wanted jgmenu to be able to behave as a native tint2 menu, but without tint2 having to do the hard work. To achieve this, we let tint2 set some environment variables on exec including TINT2_BUTTON_ALIGNED_{X1,X2,Y1,Y2}.
If 'tint2_look=1' in jgmenurc, jgmenu_run reads these environment variables and passes them via a unix socket to the long-running instance of jgmenu. On 'wake up' (=show menu), jgmenu aligns the menu to these variables.
The above method allows jgmenu to correctly position itself even in complex situations such as 'panel_shrink=1' in tint2rc (where the panel will shrink to a compact size dynamically)
In order to make this features avaialble to other panels, we would need to re-factor the code a bit to cut the dependence on other tint2 variables. This is not a big deal, but I'm reluctant to go hacking around too much until lithium is out. jgmenu is having a cool-off period
Going forward I suggest the following:
Add new config option
position_mode = ( ptr | ipc | fixed )
ptr - launch at pointer
ipc - use inter-process communication to read variables set by panel
fixed - based on margin_x, etc in jgmenurc
I suggest that ptr and fixed should respect _NET_WORKAREA, which is what generally makes jgmenu aligh accurately out-of-the-box with EWMH compliant WMs/panels.
We can be backward compatible by setting postition_mode=ptr if at_pointer==1
For the time being, I have added the xfce4-panel-plugin to contrib/ in the jgmenu repo.
I'll do the same with the mate-panel plugin shortly.
Re gtk/qt theming - we're part way there. The following works for many gtk themes.
jgmenu init --apply-obtheme
To parse actual gtk3 themes looks tricky. I haven't explored how gtk apps do it, but prefer not to make the whole gtk stack a dependency of jgmenu.
Appreciate any help in this area...
Offline
One menu to rule them all
Can we change @misko_2083's Title to Chief Promoter. I just like to write code :angel:
Offline
^@misko OK? Easily done.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
@misko That CSS script looks interesting. I think that could be the beginning of something
Offline
@malm The begining of parsing CSS?
Yes, the next step would be to decide which 'key' in the CSS file we should use to update jgmenurc.
A bit like we do in process_line() in src/jgmenu-obtheme.c
What I look forward to is some simple way to notify jgmenu of the panel orientation. Other than changing tint2rc, of course.
Could we use `jgmenu_run config` for this and set "menu_valign"
jgmenu_run config -s ~/.config/jgmenu/jgmenurc -k menu_valign -v bottom
I think we'll have to refactor jgmenu.c a bit around tint2_align() to separate the IPC from the t2conf_* functions. That would be cleaner anyway. I'm happy to invest some time in this and think we can do it in a backward compatible way.
Cool.
It would be perfect with just:
xfce4-panel --plugin-event=jgmenu-applet:popup:bool:true
like the whisker menu, but no idea how.
I don't understand how the ID works, but happy to have a look if you want me to.
Offline
Hello!
I'm trying to install jgmenu trough terminal but I can't
I type sudo apt-get install jgmenu but package can't be found
Any idea how to solve it? Am I doing something wrong? I'm a bit lost...
Offline
Should work If you are running Bunsen, otherwise check https://github.com/johanmalm/jgmenu/blo … INSTALL.md.
Offline
Hello!
I'm trying to install jgmenu trough terminal but I can't
I type sudo apt-get install jgmenu but package can't be found
Any idea how to solve it? Am I doing something wrong? I'm a bit lost...
You need to enable the backports
Offline
Thank you both. It was because of the backports.
Great job with this menu, It's really useful!
Offline
Hi, is there any way to have shadows with jgmenu ? I'm using Gala(mutter) as window manager
Offline
I don’t know mutter well.
Are we talking X11 or wayland?
Does the question refer to client-side or server-side shadows?
If server, no idea, but happy to help work it out.
If client, currently no support, but could implement with widgets.
Offline
It's x11 and shadows are working but not on jgmenu so I was wondering if there is something I need to do to enable them ? Also wm has no options to include/exclude shadows (or any other effects) per app base.
Offline
Do you get shadows on popup windows and gtk menus?
Offline
yes shadows are working fine... if it helps polybar also does not have shadow
Offline