* Intro This module prints some information about your disks on the modeline. * Dependency Put: #+BEGIN_SRC common-lisp (ql:quickload "cl-diskspace") ;; on GNU/linux only (ql:quickload "cl-mount-info") #+END_SRC ** Usage Put: #+BEGIN_SRC common-lisp (load-module "disk") #+END_SRC into your ~~/.stumpwmrc~ Then you can use "%D" in your mode line format. Filesystem(s) to be displayed can be customized by modifying the ~*disk-usage-paths*~ list. You can customize the modeline format (~*disk-modeline-fmt*~). The default value for displaying disk usage information on the modeline. |------+----------------------------------| | Code | Result | |------+----------------------------------| | %% | A literal '%' | | %d | Filesystem device | | %s | Filesystem size | | %u | Filesystem used space | | %a | Filesystem available space | | %p | Filesystem used space in percent | | %m | Filesystem mount point | | %f | Filesystem type | |------+----------------------------------| ** Known issues This module will fallback on an external shell process on non GNU/Linux platform