[xmonad] XMonad Per Host Keybinding

Sylvain Henry sylvain at haskus.fr
Fri May 13 13:29:28 UTC 2016


On line 48, you may have to enclose "defaults hostname" with brackets: 
"(defaults hostname)"


On 13/05/2016 15:22, Sylvain Henry wrote:
>
> 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!
>
> Cheers
> Sylvain
>
>
> On 13/05/2016 14:24, Dave Macias wrote:
>> Thank you for replying
>>
>> I did what you suggested and through trial and error, 3/4 lines look 
>> good.
>> Now line 71 gives me the same error "not in scope"
>>
>> I cant seem to figure out how to add it as a parameter. (Unless i did 
>> the other 3 lines wrong)
>>
>>
>> Thanks again
>> Dave
>>
>> On Thu, May 12, 2016 at 5:27 PM, Sylvain Henry <sylvain at haskus.fr 
>> <mailto:sylvain at haskus.fr>> wrote:
>>
>>     Hi,
>>
>>     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"
>>
>>     --
>>     Sylvain
>>
>>
>>     On 12/05/2016 23:04, Dave Macias wrote:
>>>     Hello i've googled around to try to figure this out.
>>>     I feel im very close.
>>>
>>>     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)
>>>
>>>     Here is a snippet of what i did: (start on line 101)
>>>     https://gist.github.com/davama/8ec019c5ea19f1f857f37ad140abbf41
>>>
>>>     I get the error "hostname not in scope".
>>>
>>>     I also have a hook which uses "hostname" and it works but cant
>>>     add to keybindings.
>>>
>>>     What am i missing?
>>>
>>>     Thank you,
>>>     Dave
>>>
>>>
>>>     _______________________________________________
>>>     xmonad mailing list
>>>     xmonad at haskell.org <mailto:xmonad at haskell.org>
>>>     http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>>
>>
>>     _______________________________________________
>>     xmonad mailing list
>>     xmonad at haskell.org <mailto:xmonad at haskell.org>
>>     http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>>
>>
>
>
>
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/xmonad/attachments/20160513/7ae2bede/attachment.html>


More information about the xmonad mailing list