stumpwm.stumpwm-contrib/modeline/hostname
2015-03-20 00:06:22 -03:00
..
COPYRIGHT show the hostname up to the first '.' in the mode-line 2015-03-19 19:03:23 -03:00
hostname.asd updated hostname.asd, so now package.lisp can be removed 2015-03-20 00:06:22 -03:00
hostname.lisp updated hostname.asd, so now package.lisp can be removed 2015-03-20 00:06:22 -03:00
README.org minor formatting 2015-03-20 00:02:59 -03:00

hostname

Usage

Add the source to your load-path with something like

    (add-to-load-path "~/stumpwm/contrib/modeline/hostname")

Next, load the module with

    (load-module "hostname")

Finally create a mode-line format string with %h in it, e.g.,

    (setf *screen-mode-line-format* "^[^B^7*%h^]")

Notes

This module uses MACHINE-INSTANCE, which isn't guaranteed to return a hostname. It should work with ABCL, ACL, CCL, CLISP, CMUCL, ECL, SBCL. If it doesn't please report the issue.