The JGmenu hacking thread

jgmenu

#1

Share your custom jgmenu setup here.


pinned #2

#3

This script checks available PulseAudio sinks, and creates jgmenu to switch audio output on the fly:

It could be easily adopted to produce other dynamic jgmenus.


#4

@dobbie03 I don’t have jgmenu working with bookmarks in the sense that I imported an html file from Firefox. I created a text file from scratch and used Lesson 3 as an example.

bookmark script:

# submenus

Forums,^checkout(Forums)
News,^checkout(News)
Eye Candy,^checkout(Candy)

^tag(Forums)
ArchLabs,surf https://forum.archlabslinux.com/
BunsenLabs,surf https://forums.bunsenlabs.org/index.php
Void Linux,surf https://voidlinux.org/
Vsido,surf https://vsido.org/index.php

^tag(News)
Fox,surf https://www.foxnews.com/
Wash. Times,surf https://www.washingtontimes.com/
Reuters,surf https://www.reuters.com/news/world
MLB,surf https:///www.mlb.com

^tag(Candy)
Wallhaven,surf https://alpha.wallhaven.cc/
Soc. Wall,surf https://www.socwall.com/
Wallpaper Craft,surf https://wallpaperscraft.com/
Wallpapers Wide,surf http://wallpaperswide.com/
^sep()
Font Squirrel,surf https://www.fontsquirrel.com/
Font Library,surf https://fontlibrary.org/en
^sep()
Gnome-look,surf https://www.gnome-look.org/
Box-look,surf https://www.box-look.org/
^sep()
Scrot.moe,surf https://www.scrot.moe/

Once it’s complete, just need to set up key binding to call the menu. Working pretty well for static bookmarks.

jgmenu does support pipe menus as well, so if you’re a script kiddie or can outright code, you could make some pretty sophisticated menus.

Edit - scrot or it didn’t happen, updated menu:


#5

Excellent idea for a thread; been tinkering with jgmenu scripting and pipe menus. Under utilized aspect of jgmenu.


#6

Like topic!

Have recently released v2.0. Should soon hit the Arch repos.

For ff bookmarks, there is this script:


#7

This is great, thanks guys.


#8

@malm, I’;m getting this error with the script

/usr/lib/jgmenu/jgmenu-ff-bookmarks.sh: line 51: test: =: unary operator expected
Error: unable to open database "/home/dobbie/.mozilla/firefox/oecmt2vh.Dobbie/places.sqlite
/home/dobbie/.mozilla/firefox/5pwjlvj7.dev-edition-default/places.sqlite": unable to open database file
Error: unable to open database "/home/dobbie/.mozilla/firefox/oecmt2vh.Dobbie/places.sqlite
/home/dobbie/.mozilla/firefox/5pwjlvj7.dev-edition-default/places.sqlite": unable to open database file
Error: unable to open database "/home/dobbie/.mozilla/firefox/oecmt2vh.Dobbie/places.sqlite
/home/dobbie/.mozilla/firefox/5pwjlvj7.dev-edition-default/places.sqlite": unable to open database file

Obviously the file exists, is there something I need to change within the script?


#9

Not sure.

I’ve fixed the error on line 51 (pushed to gh repo) - but that’s just a side-issue.

Does it work if firefox is not running? Firefox might be locking the database. I have pretty much zero sqlite3 knowledge, so might need help with this.

We no longer (v2.0) install ff-bookmarks by default because the script was difficult to maintain across OSs and was only ever intended to be a quick hack… ideal for this thread (if we can get it working).

v2.0 release notes


#10

Doesn’t work while FF isn’t running either. I’ll wait until 2.0 hits the Arch repos and try again.


#11

Custom menu, combined applications with bookmarks:

jgmenu_combined.md.png


#12

Yeah that’s really cool.