<div dir="ltr">Thank you for replying<div><br></div><div>I did what you suggested and through trial and error, 3/4 lines look good. </div><div>Now line 71 gives me the same error "not in scope"</div><div><br></div><div>I cant seem to figure out how to add it as a parameter. (Unless i did the other 3 lines wrong)</div><div><table class="" style="border-spacing:0px;border-collapse:collapse;color:rgb(51,51,51);font-family:Helvetica,arial,nimbussansl,liberationsans,freesans,clean,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:13px;line-height:18.2px"></table></div><div><br></div><div>Thanks again</div><div>Dave</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 12, 2016 at 5:27 PM, Sylvain Henry <span dir="ltr"><<a href="mailto:sylvain@haskus.fr" target="_blank">sylvain@haskus.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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><div><div class="h5">
<br>
<div>On 12/05/2016 23:04, Dave Macias wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<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 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></fieldset>
<br>
</div></div><pre>_______________________________________________
xmonad mailing list
<a href="mailto:xmonad@haskell.org" target="_blank">xmonad@haskell.org</a>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
xmonad mailing list<br>
<a href="mailto:xmonad@haskell.org">xmonad@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad</a><br>
<br></blockquote></div><br></div>