ArchLabs Linux

GTK menu for sway and i3

Hard at work again @nwg

1 Like

sgtk-menu 0.3.0

  • [-y Y] argument to offset the menu from the edge of the screen
  • [-n | --no-menu] argument to display appendix only
  • searching custom menus disabled
  • handling missing icon file error
  • basic css styling
  • default appendix: invalid argument removed
  • fix to XDG Base Directory incorrectly defined
3 Likes

Top again @nwg

I was missing the rofi/wofi exit menu, which was centered on the screen. Time for the [-c | --center] argument.

1 Like

Meanwhile on the “experiments” branch: sgtk-menu as Openbox menu:

<mousebind action="Press" button="Right">
  <action name="Execute">
    <command>sgtk-menu -m -af appendix-ob -fn 3</command>
  </action>
</mousebind>

2 Likes

Top work again @nwg

1 Like

v0.5.0 published. I needed to fix a bug appearing on i3, and added, still a bit experimental, support for floating WMs by the way.

3 Likes

Top again @nwg

@PackRat, I need your advice, as you’re more familiar with OB. To replace the Openbox menu with sgtk-menu, I edited rc.xml. Is there a way to do it by just editing menu.xml?

Not that I’m aware of. The menu.xml is just the commands you want to show in the root-menu. Once the calls to the root-menu are replaced in the rc.xml, the menu.xml is no longer used by openbox.

Is there only a mousebind for root-menu in the rc.xml? I know I have W+space set up to access the root-menu, but I think I added that in myself.

1 Like

It appears several times, in several contexts. Editing this one works for me:

<context name="Root">
  <!-- Menus -->
  <mousebind action="Press" button="Middle">
    <action name="ShowMenu">
      <menu>client-list-combined-menu</menu>
    </action>
  </mousebind>
  <mousebind action="Press" button="Right">
    <action name="ShowMenu">
      <menu>root-menu</menu>
    </action>
  </mousebind>
</context>

v0.5.1 pre-released. If testing goes well, this will be RC1.

I decided to focus on 3 main objectives. I expect the script to:

  1. Work on sway;
  2. keep the backwards compatibility with i3;
  3. work as the Openbox menu replacement.

Due to numerous limitations, adjusting the script to work well in every possible environment makes little sense and exceeds my possibilities.

AUR package will be published soon.

1 Like

Gee, you haven t run out of beer the way I can see it ! lol

Nice @nwg

1 Like

:rofl: One more porter could do the job: they have 9.5% alcohol. But I limited myself to just 2 ones.

1 Like

yeah, 2 s ok , that s some beer out there !

1 Like

AUR package updated to 0.5.1.

release notes

2 Likes

Works as a replacement menu for Openbox and Fluxbox -

openbox-sgtkmenu.md.png

fluxbox-sgtkmenu-002.md.png

3 Likes

Excellent! Thanks for testing!

On Friday I started it also on xfce (VM at the office) and it worked as well. But it’s not a sufficient reason for me to install xfce at home. :smiley:

Top again @nwg @PackRat

v0.7.0 released, AUR package up to date.

release notes

2 Likes