https://github.com/albertocentonze/ram-alert
A bash script that notifies you when you run low on RAM through GNOME
https://github.com/albertocentonze/ram-alert
bash gnome linux low-ram
Last synced: about 2 months ago
JSON representation
A bash script that notifies you when you run low on RAM through GNOME
- Host: GitHub
- URL: https://github.com/albertocentonze/ram-alert
- Owner: AlbertoCentonze
- License: mit
- Created: 2021-11-06T20:43:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-16T16:21:15.000Z (about 4 years ago)
- Last Synced: 2025-10-11T01:04:25.929Z (9 months ago)
- Topics: bash, gnome, linux, low-ram
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GNOME 40+ low RAM notification
A simple bash script that sends a notification to gnome every time you're running low on RAM.

## Why did you make this?
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.
## How to use
### Give the script execution permission
```bash
chmod +x /script/path.sh
```
### Start systemd service
```bash
sudo systemctl start low-ram-check
```
### Autostart at boot
```bash
sudo systemctl enable low-ram-check
```
### Disable autostart at boot
```bash
sudo systemctl enable low-ram-check
```
## Compatibility
The 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.
## Contribute
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.