A simple bash script that sends a notification to gnome every time you're running low on RAM.
TL;DR I'm too lazy to add a swap partition.
I've been working for a while on a laptop with 8Gb of RAM. While using PyCharm I realized that the small warning it sends on high RAM consumption is really useful to prevent getting stuck on a PC the must be halted. That's why I've taken this opportunity to learn how to write scripts in bash by replicating the same behaviour with GNOME.
chmod +x /script/path.shsudo systemctl start low-ram-checksudo systemctl enable low-ram-checksudo systemctl enable low-ram-checkThe script has been tested on Arch Linux using systemd and GNOME.
Technically it should be compatible with basically any systemd based installation with a DE that supports the notify-send command.
Feel free to make a pull request if you can improve my script! I'm not a bash expert but I'm always open to suggestions and improvements.
