For background, I'm currently using notify-send to produce dbus notifications when a long script finishes but I'd like to make better notifications with naughty.
I found this simple script https://gist.github.com/lgaggini/51a35f363b7f1966971e869f3fbb5335 for sending naughty notifications using awesome-client. It initializes the naughty library every time it runs, which seems messy since it only needs to be loaded once per session.
In my rc.lua, I tried changing the line
local naughty=require("naughty")
- remove
local
: still needed to require naughty through a lua prompt or awesome-client after restarting awesome - add
global
: that's not actually a keyword in lua so it breaks my config
Is there something I can do here or elsewhere in my rc.lua that will make this (or any other) library available to awesome-client without an extra step?