<div dir="ltr">I did try that but i remember it spit out a few errors.<div>This is the error:</div><div><br></div><div>""</div><div><i>xmonad.hs:455:20:</i></div><div><i> Couldn't match type ‘[Char]’ with ‘XConfig l0’</i></div><div><i> Expected type: XConfig l0</i></div><div><i> Actual type: String</i></div><div><i> In the expression: hostname</i></div><div><i> In the first argument of ‘defaults’, namely</i></div><div><i> ‘hostname</i></div><div><i> {manageHook = composeAll</i></div><div><i> [manageDocks, manageSpawn, myManageHook, ....],</i></div><div><i> startupHook = composeAll</i></div><div><i> [myStartupHook, setWMName "Xmonad", myCaseHook hostname, ....],</i></div><div><i> logHook = composeAll</i></div><div><i> [myFadeHook, ewmhDesktopsLogHook, myDzenLogHook xmproc]</i></div><div><i> >> updatePointer (0.5, 0.5) (0, 0)}’</i></div><div>""</div><div><br></div><div>Granted line <i>455</i> is actually line 71. (in the provided gist config)</div><div>The <i>"In the first argument of ‘defaults’, namely"</i> output, that is line 48 if i understand it correctly.</div><div><br></div><div>Let me know if i need to provide more of the xmonad.hs config code. (didnt want to flood you with its many lines)</div><div><br></div><div>Dave</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 13, 2016 at 9:22 AM, 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>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<span class="HOEnZb"><font color="#888888"><br>
Sylvain<br>
</font></span></p><div><div class="h5">
<br>
<div>On 13/05/2016 14:24, Dave Macias wrote:<br>
</div>
<blockquote 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>
</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> <br>
<div>On 12/05/2016 23:04, Dave Macias wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<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" target="_blank">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>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>