stumpwm.stumpwm-contrib/modeline/disk
cage 12108cf29f Trap CL-MOUNT-INFO conditions
When CL-MOUNT-INFO can't open the file containing the mount
information, /etc/mtab by default, it will signal an error. Handle the
error so that StumpWM doesn't crash.
2020-01-07 00:29:10 -05:00
..
disk.asd Disk plugin: Use library instead of external process on GNU/Linux (#160) 2019-12-29 23:23:43 -05:00
disk.lisp Trap CL-MOUNT-INFO conditions 2020-01-07 00:29:10 -05:00
package.lisp Disk plugin: Use library instead of external process on GNU/Linux (#160) 2019-12-29 23:23:43 -05:00
README.org Disk plugin: Use library instead of external process on GNU/Linux (#160) 2019-12-29 23:23:43 -05:00

Intro

This module prints some information about your disks on the modeline.

Dependency

Put:

  (ql:quickload "cl-diskspace")
  ;; on GNU/linux only
  (ql:quickload "cl-mount-info")

Usage

Put:

  (load-module "disk")

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