You are not logged in.

#201 2019-02-28 17:12:46

malm
jgmenu developer
Registered: 2016-10-13
Posts: 735
Website

Re: jgmenu

Sounds like it’s sorted. Thanks.

Offline

#202 2019-05-20 20:48:45

malm
jgmenu developer
Registered: 2016-10-13
Posts: 735
Website

Re: jgmenu

^ @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

#203 2019-07-02 16:58:43

malm
jgmenu developer
Registered: 2016-10-13
Posts: 735
Website

Re: jgmenu

@misko wow. Would you mind letting us in on the inner secrets of you did that?

Offline

#204 2019-07-04 21:43:01

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,897

Re: jgmenu

Wow misko...that looks like some great work and Malm has to be amazed!


Real Men Use Linux

Offline

#205 2019-07-05 15:53:08

malm
jgmenu developer
Registered: 2016-10-13
Posts: 735
Website

Re: jgmenu

@misko awesome! I’ll be installing panels tonight to check this out.

Offline

#206 2019-07-05 15:58:10

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,897

Re: jgmenu

misko_2083 wrote:

^ 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. ]:D

Jgmenu 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  cool


Real Men Use Linux

Offline

#207 2019-07-14 11:29:52

malm
jgmenu developer
Registered: 2016-10-13
Posts: 735
Website

Re: jgmenu

@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 smile

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

#208 2019-07-14 11:37:42

malm
jgmenu developer
Registered: 2016-10-13
Posts: 735
Website

Re: jgmenu

misko_2083 wrote:

One menu to rule them all

Can we change @misko_2083's Title to Chief Promoter. I just like to write code :angel:

Offline

#209 2019-07-15 03:47:31

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
Website

Re: jgmenu

^@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 )

Introduction to the Bunsenlabs Boron Desktop

Offline

#210 2019-07-22 20:48:21

malm
jgmenu developer
Registered: 2016-10-13
Posts: 735
Website

Re: jgmenu

@misko That CSS script looks interesting. I think that could be the beginning of something smile

Offline

#211 2019-07-23 19:41:06

malm
jgmenu developer
Registered: 2016-10-13
Posts: 735
Website

Re: jgmenu

misko_2083 wrote:

@malm The begining of parsing CSS? smile

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

#212 2019-07-24 15:18:21

Uooops
Member
Registered: 2019-07-08
Posts: 19

Re: jgmenu

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

#213 2019-07-24 16:19:18

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,737

Re: jgmenu

Should work If you are running Bunsen, otherwise check https://github.com/johanmalm/jgmenu/blo … INSTALL.md.

Offline

#214 2019-07-24 17:24:57

malm
jgmenu developer
Registered: 2016-10-13
Posts: 735
Website

Re: jgmenu

Uooops wrote:

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

#215 2019-07-25 14:18:48

Uooops
Member
Registered: 2019-07-08
Posts: 19

Re: jgmenu

Thank you both. It was because of the backports.

Great job with this menu, It's really useful!

Offline

#216 2019-08-09 15:44:50

crn
Member
Registered: 2019-08-09
Posts: 7

Re: jgmenu

Hi, is there any way to have shadows with jgmenu ? I'm using Gala(mutter) as window manager

Offline

#217 2019-08-09 15:56:06

malm
jgmenu developer
Registered: 2016-10-13
Posts: 735
Website

Re: jgmenu

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

#218 2019-08-09 17:13:06

crn
Member
Registered: 2019-08-09
Posts: 7

Re: jgmenu

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

#219 2019-08-09 17:19:16

malm
jgmenu developer
Registered: 2016-10-13
Posts: 735
Website

Re: jgmenu

Do you get shadows on popup windows and gtk menus?

Offline

#220 2019-08-09 17:31:11

crn
Member
Registered: 2019-08-09
Posts: 7

Re: jgmenu

yes shadows are working fine... if it helps polybar also does not have shadow

Offline

Board footer

Powered by FluxBB