stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] Sharing .stumpwmrc between computers


From: Josh Elsasser
Subject: Re: [STUMP] Sharing .stumpwmrc between computers
Date: Wed, 30 Nov 2011 17:07:54 -0800
User-agent: Mutt/1.5.20 (2009-06-14)

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) ".")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]