<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi,</p>
<p>Indeed "hostname" is not in scope in "myKeys". You can add a
"hostname" parameter to "myKeys" and to "defaults" (lines 21, 33,
48 and 71) to pass the "hostname" you retrieve in "main" down to
"myKeys"<br>
</p>
<p>--<br>
Sylvain<br>
</p>
<br>
<div class="moz-cite-prefix">On 12/05/2016 23:04, Dave Macias wrote:<br>
</div>
<blockquote
cite="mid:CA+nFYV8bLxyb3AsfKvUsajHwoxKG=d3Nb2MrnximmUm2bvBu+A@mail.gmail.com"
type="cite">
<div dir="ltr">Hello i've googled around to try to figure this
out.
<div>I feel im very close.</div>
<div><br>
</div>
<div>Im trying to add different actions to identical keybindings
depending on the HOST im on. (i use my xmonad.hs file for my
desktop and laptop)</div>
<div><br>
</div>
<div>Here is a snippet of what i did: (start on line 101)</div>
<div><a moz-do-not-send="true"
href="https://gist.github.com/davama/8ec019c5ea19f1f857f37ad140abbf41"
target="_blank">https://gist.github.com/davama/8ec019c5ea19f1f857f37ad140abbf41</a><br>
</div>
<div><br>
</div>
<div>I get the error "hostname not in scope".</div>
<div><br>
</div>
<div>I also have a hook which uses "hostname" and it works but
cant add to keybindings.</div>
<div><br>
</div>
<div>What am i missing?</div>
<div><br>
</div>
<div>Thank you,</div>
<div>Dave</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
xmonad mailing list
<a class="moz-txt-link-abbreviated" href="mailto:xmonad@haskell.org">xmonad@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad">http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad</a>
</pre>
</blockquote>
<br>
</body>
</html>