You are not logged in.
A simple hook that will kill your jgmenu instance so that the menus update whenever you add or remove packages. Ignores package upgrades as they don't require a menu update. Separated the actual action to a script so that it doesn't produce an error if jgmenu is not running.
/usr/share/libalpm/hooks/jgmenu.hook
[Trigger]
Operation = Install
Operation = Remove
Type = Package
Target = *
[Action]
Depends = jgmenu
When = PostTransaction
Exec = /usr/share/libalpm/scripts/jgmenu-update
/usr/share/libalpm/scripts/jgmenu-update
#!/bin/bash
if [ $(ps aux | grep -v grep | awk '{print $11}' | grep jgmenu 2> /dev/null) ]
then
killall jgmenu
fi
Last edited by mladoux (2018-02-14 05:51:29)
Offline