Update memory

This commit is contained in:
Vlad Doster 2020-05-09 23:49:25 -05:00 committed by GitHub
parent 9c5aba44f6
commit 737a8a1760
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,12 @@
#!/bin/sh
case $BLOCK_BUTTON in
1) notify-send "🧠 Memory hogs" "$(ps axch -o cmd:15,%mem --sort=-%mem | head)" ;;
1) notify-send "RAM hogs" "$(ps axch -o cmd:15,%mem --sort=-%mem | head)" ;;
2) setsid "$TERMINAL" -e htop & ;;
3) notify-send "🧠 Memory module" "\- Shows Memory Used/Total.
- Click to show memory hogs.
3) notify-send "RAM module" "\- Shows RAM Used/Total.
- Click to show RAM hogs.
- Middle click to open htop." ;;
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
free -h | sed -n '2{p;q}' | awk '{print " 🧠", $3 "/" $2 " "}'
free -h | sed -n '2{p;q}' | awk '{print " RAM:", $3 "/" $2 " "}'