Update Polybar
This commit is contained in:
9
files/.config/polybar/scripts/memory.sh
Executable file
9
files/.config/polybar/scripts/memory.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
case "$1" in
|
||||
--popup)
|
||||
notify-send "Memory (%)" "$(ps axch -o cmd:10,pmem k -pmem | head | awk '$0=$0"%"' )"
|
||||
;;
|
||||
*)
|
||||
echo "$(free -h --si | awk '/^Mem:/ {print $3 "/" $2}')"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user