Jgmenu

Support thread for jgmenu

1 Like

jgmenu is now in the Arch community repo

1 Like

Excellent.

I’m sure I saw a screenshot showing power off, reboot icons etc? Is this possible with Jgmenu @malm?

2 Likes

I didn’t think the utility of another menu would be much use to me but I’ve found myself using jgmenu more and more & it’s incredibly easy to modify. Really nice @malm & thanks.

1 Like

I don’t use it often as I normally use Rofi to launch anything, but I really like jgmenu.

Thanks.

This includes an example of how you can implement poweroff, etc.
This is how we used it before lx, pmenu and xdg existed.
https://github.com/johanmalm/jgmenu/blob/master/docs/default.csv

With the current ArchLabs setup, if you add the following to ~/.config/jgmenu/append.csv you get something similar

Exit to prompt,openbox --exit,system-log-out
Suspend,systemctl -i suspend,system-log-out
Reboot,systemctl -i reboot,system-reboot
Poweroff,systemctl -i poweroff,system-shutdown
2 Likes

If you set the following in ~/.config/jgmenu/jgmenurc

csv_cmd = ob

you get the ā€œArchLabsā€ (~/.config/openbox/menu.xml) menu. This can be quite useful on Window Managers other than openbox.

You could also build this into the current menu using ^pipe()

1 Like

@malm, thanks for the reply. Both very cool options.

Is append.csv a current file? I don’t seem to have anything but jgmenurc in ~/.config/jgmenu

Put this in your ~/.config/jgmenu folder as append.csv

Web Browser,firefox,firefox
File Manager,pcmanfm,system-file-manager
Terminal,xterm,utilities-terminal
Music Player,pgrep mpd || mpd; xterm -e ā€˜ncmpcpp’,multimedia-player
Lock,i3lock -c 000000,system-lock-screen
Run,dmenu_run -fn ā€œ--dejavu sans-medium-r----------*ā€,system-run
Settings and Admin,^checkout(settings),folder
Exit,^checkout(exit),system-shutdown

Settings and Admin,^tag(settings)
Wifi,xterm -e ā€˜sudo wifi-menu’,network-wireless
Sound,pavucontrol,multimedia-volume-control
Printers,firefox http://localhost:631/admin,printer
Background image,nitrogen ~/bg/,preferences-desktop-wallpaper
Colour Picker,yad --color --button=OK --undecorated --center,color-picker
Update system,xterm -e ā€˜sudo pacman -Syyu; bash’,system-software-update

Exit,^tag(exit)
Exit to prompt,openbox --exit,system-log-out
Suspend,systemctl -i suspend,system-log-out
Reboot,systemctl -i reboot,system-reboot
Poweroff,systemctl -i poweroff,system-shutdown

I copied this from @malm’s link. Works well here.

2 Likes

Thanks Matt. Awesome @malm :slight_smile:

1 Like

Hmmm, for whatever reason… To add ā€˜only’ the logout commands to jgmenu I needed to do this:

Exit,^checkout(exit),system-shutdown <—(This line needed to be retained)
Exit,^tag(exit)
Logout,openbox --exit,system-log-out
Reboot,systemctl -i reboot,system-reboot
Poweroff,systemctl -i poweroff,system-shutdown

Good stuff.

You can use both prepend.csv and append.csv.
See tutorial ā€œlesson 9ā€

@anon37345411
Yes.
See ā€œLesson 6ā€ in the tutorial for some notes on ^tag() and ^checkout()

4 Likes

Thanks malm it’s working perfectly & I will :slight_smile:

1 Like

jgmenu has been tagged at v0.9

Release Notes

3 Likes

i change repo my arch labs my start menu keep not showing

We should soon get that sorted.

Could you paste the output to the following:

sudo pacman -Ss jgmenu

pacman -Qi jgmenu

jgmenu --version

What happens if you run jgmenu from a terminal?

Could you also do

pacman -Qs jg

A jgmenu user has reported an issue with xinerama with a new gaphics card (github issue #61)

I’ve replaced xinerama with xrandr on branch ā€˜dev’ and
tested it on my machine.

If anyone has a multi-monitor setup and feels taking it for a quick test drive, I’d be most grateful. It’s the sort of change that could break things and I’m keen to gain some confidence before merging with the ā€˜master’ branch.

The steps would be as follows

git clone -b dev https://github.com/johanmalm/jgmenu
cd jgmenu
make
killall jgmenu
JGMENU_SCREEN_INFO=1 ./jgmenu

Press F10 to exit jgmenu
Move pointer to a different monitor

JGMENU_SCREEN_INFO=1 ./jgmenu
1 Like

Hey, first of all thank you for jgmenu, it’s one of those great tools that remind me what I love about Linux. I guess this is more of a bspwm question than a jgmenu question, so feel free to ignore it, I’ll repost it in the forums.

Do you have any idea on how can I bind jgmenu with bspwm/sxhkd to launch it when right clicking on the desktop? I love the Openbox root menu and the tiling of bspwm and I would like to combine the best of both worlds :slight_smile: . I saw it’s possible with other WMs, but I can’t figure out how to do it with bspwm.

Even a small push in the right direction will be greatly appreciated.

Thanks!