

To add to the great response from @confusedpuppy@lemmy.dbzer0.com, amber would address one thing only: writing the syntax.
Most people don’t need it, and even if they had it would break the compliance in other ways besides syntax, but I’m sure there are people out there that know what they are doing who would appreciate amber.
Amber will still support bash stuff, or perhaps even other non-posix shells through the use of flags.











I assume cinnamon uses the kind of methods talked about here: https://www.freedesktop.org/wiki/Software/systemd/inhibit/
I don’t know anything about freedesktop and I refuse to learn, but give it a read and see if you can use it for anything.
The systemd-suspend.service also runs any scripts it finds in
/usr/lib/systemd/system-sleep/, which might also be respected by whatever cinnamon is doing, or not. You can read more about it here https://man7.org/linux/man-pages/man8/systemd-suspend.service.8.htmlFor that you’d basically put a shell script in that directory that checks if the $1 variable that is passed to it is either “pre” or “post” for suspending or waking up respectively and running whatever command you want. Again, this is hacky and might not work in all environments.