<div dir="ltr">Thank you for the reply.<div>That helped me to figure it out.</div><div>But I had to create a separate <b>Colorizer</b>. (see below)</div><div>Is there a way to use the same colorizer as goToSelected?</div><div>Thanks!</div><div><br>myGSFont = "xft:Noto Sans CJK KR:bold:pixelsize=10"<br>myColorizer :: Window -> Bool -> X (String, String)<br>myColorizer = colorRangeFromClassName<br> (0x31,0x2e,0x39) -- lowest inactive bg<br> (0x31,0x2e,0x39) -- highest inactive bg<br> (0x78,0x3e,0x57) -- active bg<br> (0xc0,0xa7,0x9a) -- inactive fg<br> (0xff,0xff,0xff) -- active fg<br><br><b>gridColorizer :: a -> Bool -> X (String, String)<br>gridColorizer _ True = return ("#00aa00", "black")<br>gridColorizer _ False = return ("#333333", "#cccccc")</b><br><br>myGSConfig :: t -> GSConfig Window<br>myGSConfig colorizer = (buildDefaultGSConfig myColorizer)<br> { gs_cellheight = 30<br> , gs_cellwidth = 200<br> , gs_cellpadding = 6<br> , gs_originFractX = 0.5<br> , gs_originFractY = 0.5<br> , gs_colorizer = myColorizer<br> , gs_font = myGSFont<br> }<br><br>-- spawnSelected Redefine<br>spawnSelected' :: [(String, String)] -> X ()<br>spawnSelected' lst = gridselect conf lst >>= flip whenJust spawn<br> where conf = def<br> { gs_cellheight = 30<br> , gs_cellwidth = 200<br> , gs_cellpadding = 6<br> , gs_originFractX = 0.5<br> , gs_originFractY = 0.5<br><b> , gs_colorizer = gridColorizer<br></b> , gs_font = myGSFont<br> }<br></div><div><br></div><div><br></div><div> , ((mod4Mask, xK_g), goToSelected $ myGSConfig myColorizer)<br><b> , ((mod4Mask, xK_y), spawnSelected' myAppGrid) <br></b> , ((mod4Mask, xK_u), runSelectedAction (buildDefaultGSConfig gridColorizer) <br> [ ("Chromium", spawnHere "chromium")<br> , ("Hexchat", spawnHere "hexchat")<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 8, 2020 at 8:46 AM Platon Pronko <<a href="mailto:platon7pronko@gmail.com">platon7pronko@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi!<br>
<br>
Your spawnSelected' has one argument [(String, String)], but you try to invoke it with two - myAppGrid and winconfig. I'd remove winconfig argument and instead stick it into gs_colorizer field in your GSConfig constructor.<br>
<br>
Best regards,<br>
Platon Pronko<br>
<br>
On 2020-08-07 17:13, Dave Macias wrote:<br>
> Hello,<br>
> <br>
> Apologies for the repost....i had posted here: <a href="https://www.reddit.com/r/xmonad/comments/hvaug9/xagridselect_spawnselected_colorized/" rel="noreferrer" target="_blank">https://www.reddit.com/r/xmonad/comments/hvaug9/xagridselect_spawnselected_colorized/</a> but no response for some time now. So I want to try here.<br>
> <br>
> Basically, I am trying to custom colorize spawnSelected grid apps.<br>
> I was able to do this with goToSelected and I really like the color scheme.<br>
> <br>
> Was hoping to use the same color scheme that i use for goToSelected applied to spawnSelected.<br>
> <br>
> Any input is much appreciated!<br>
> <br>
> Stay safe.<br>
> <br>
> -Dave<br>
> <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>
_______________________________________________<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>
</blockquote></div>