mirror of
https://github.com/stumpwm/stumpwm-contrib.git
synced 2026-09-10 07:26:25 -04:00
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. |
||
|---|---|---|
| .. | ||
| disk.asd | ||
| disk.lisp | ||
| package.lisp | ||
| README.org | ||
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