[xmonad] [xmonad-contrib] Patch to add messages IncSpacing/SetSpacing to the Spacing modifier for dynamic adjustment

adam vogt vogt.adam at gmail.com
Wed Mar 4 00:03:05 UTC 2015


Hi Anton,

Do you actually need the Read/Show instances? I think it's better to
put a function in the message:

data ModifySpacing = ModifySpacing (Int -> Int)

And possibly export these convenience functions:

setSpacing n = sendMessage (ModifySpacing (\_ -> n))
incSpacing n = sendMessage (ModifySpacing (+n))

Regards,
Adam

On Tue, Mar 3, 2015 at 4:09 PM, Anton Pirogov <anton.pirogov at gmail.com> wrote:
> This is such a small change that I think that it makes more sense to patch
> it, instead of rolling my own. It just adds the message, nothing more, so it
> does not break anything.
>
> Thanks!
>
> Best regards,
> Anton Pirogov
>
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>


More information about the xmonad mailing list