message=f"Your RAM usage is over 90%!\nRam usage: {ram_perc()}%\nSwap usage: {swap_perc()}%",
timeout=10,
)
defram_full():
pwmmu=get_pwmmu()
kill_process(pwmmu[2])
notification.notify(
title="Your memory is full, killed process with most memory usage.",
message=f"Your memory usage was higher than 98%, automatically killed process with most memory usage.\nRam usage: {ram_perc()}%\nSwap usage: {swap_perc()}%\n Killed process: {pwmmu[0]}",