zk-phi / symon

Tiny graphical system monitor
289 stars 26 forks source link

only display MEM #31

Open lix90 opened 7 years ago

lix90 commented 7 years ago

hi, when I set it up, I can only have MEM on the mini buffer. What may cause this? I am at MacOS el captain 10.11, emacs 25.1

zk-phi commented 7 years ago

You just load and activate symon-mode (if you have any configurations, please show me that) ?

(require 'symon)
(symon-mode 1)

I want to know whether the problem is caused while rendering or fetching stats, so can you please evaluate the following expression with symon-mode activated (copy-and-paste the expression into an emacs-lisp-mode buffer, then M-x eval-last-sexp) ?

The expression is expected to fetch stats and format as a string.

lix90 commented 7 years ago
screen shot 2016-12-06 at 09 17 54

It ends up like this. : (

zk-phi commented 7 years ago

oops sorrrrry I forgot to paste the code....

(apply 'concat (mapcar 'funcall (car symon--display-fns)))

↑this expression is expected to return the display string.

lix90 commented 7 years ago

i tried this code and it resulted in some strings displaying in mini-buffer and *message* buffer. After that, however, mini-buffer still only had MEM. Sorry for my ignorance in emacs-lisp. Maybe I put the code in a wrong place.

(use-package symon
  :ensure t
  :defer t
  :init
  (symon-mode)
  (apply 'concat (mapcar 'funcall (car symon--display-fns)))
  :config
  (setq symon-sparkline-type 'bounded
        symon-sparkline-thickness 1))
#("MEM:53%   CPU:1%   RX:1KB/s   TX:0KB/s   " 8 9 (display (image :type xpm :data "/* XPM */
static char * sparkline_xpm[] = { \"80 11 2 1\", \"@ c #839496\", \". c none\",
\"@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"@@@@@@@@@@@@....................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.\"};" :ascent 100 :height 11 :width 80)) 17 18 (display (image :type xpm :data "/* XPM */
static char * sparkline_xpm[] = { \"80 11 2 1\", \"@ c #839496\", \". c none\",
\"@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"@@@@@@@@@@@@@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.\"};" :ascent 100 :height 11 :width 80)) 28 29 (display (image :type xpm :data "/* XPM */
static char * sparkline_xpm[] = { \"80 11 2 1\", \"@ c #839496\", \". c none\",
\"@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"@@@@@@@@@@@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.\"};" :ascent 100 :height 11 :width 80)) 39 40 (display (image :type xpm :data "/* XPM */
static char * sparkline_xpm[] = { \"80 11 2 1\", \"@ c #839496\", \". c none\",
\"@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"................................................................................\",
\"@@@@@@@@@@@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.\"};" :ascent 100 :height 11 :width 80)))