On Wed, Nov 30, 2011 at 08:29:54PM +0000, Johnny wrote:
> Hi,
> 
> I want to share my .stumpwmrc between my desktop and the netbook as the
> setup is nearly identical. However, there are a couple of lines that are
> machine specific. In emacs, I solve this by checking the 'system-name'
> variable in a 'when' clause (see below). Is there something similar I
> could put in .stumpwmrc?
> 
> ,---- In my emacs
> | (when (string= (system-name) "my_desktop")
> |      ... load desktop only stuff
> |   )
> `----

This should get you what you want, at least in any CL implementation
which returns something vaguely reasonable from MACHINE-INSTANCE:

(defun hostname ()
  (first (stumpwm:split-string (machine-instance) ".")))

_______________________________________________
Stumpwm-devel mailing list
Stumpwm-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/stumpwm-devel

Reply via email to