<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>On line 48, you may have to enclose "defaults hostname" with
      brackets: "(defaults hostname)"<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 13/05/2016 15:22, Sylvain Henry
      wrote:<br>
    </div>
    <blockquote
      cite="mid:7d5fcd16-1fa5-c484-f18e-2de7c55cf439@haskus.fr"
      type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      <p>On line 71, put "hostname" just after "myKeys" to make it the
        first parameter of the "myKeys" function and it should work
        (hopefully ;)). The other lines look good!<br>
      </p>
      <p>Cheers<br>
        Sylvain<br>
      </p>
      <br>
      <div class="moz-cite-prefix">On 13/05/2016 14:24, Dave Macias
        wrote:<br>
      </div>
      <blockquote
cite="mid:CA+nFYV-G9+ev-Z0TYKSP-D2FzS1SJCYG9e-P3k-ErRUc1Vynig@mail.gmail.com"
        type="cite">
        <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 moz-do-not-send="true"
                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 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></fieldset>
                      <br>
                    </div>
                  </div>
                  <pre>_______________________________________________
xmonad mailing list
<a moz-do-not-send="true" href="mailto:xmonad@haskell.org" target="_blank">xmonad@haskell.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true" href="mailto:xmonad@haskell.org">xmonad@haskell.org</a><br>
              <a moz-do-not-send="true"
                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>
      </blockquote>
      <br>
      <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>