[xmonad] XMonad.Prompt font

Daniel Wagner dmwit at dmwit.com
Wed Jun 22 20:17:44 UTC 2016


Thanks, I've pushed an improvement to the docs that mentions this.

~d

On Sun, Jun 12, 2016 at 1:40 PM, Adam Sjøgren <asjo at koldfront.dk> wrote:

> I was experimenting with switching from dmenu to XMonad.Prompt.Shell.
>
> With dmenu I can get the font I want by passing the argument '-fn "DejaVu
> Sans Condensed-8:normal"' (a truetype font, using xft).
>
> I would like the same in XMonad.Prompt.Shell.
>
> xfontsel(1) of course does not list truetype fonts, and the
> documentation only says:
>
>   "data XPConfig
>      Constructors
>        XPC
>          font :: String    Font"
>
>     - http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Prompt.html
>
> So if anyone else runs into this: what you need to know/guess is to
> prefix the 'font' with "xft:" in your configuration; i.e.:
>
>   myPromptConfig = defaultXPConfig
>                    {
>                      position = Top
>                      -- ...
>                    , font = "xft:DejaVu Sans Condensed-8"
>                    }
>
>
>   Best regards,
>
>     Adam
>
> --
>  "How are you this tiny and this strong? You are              Adam Sjøgren
>   like an ant!"                                          asjo at koldfront.dk
>
> _______________________________________________
> 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/20160622/62db01d3/attachment.html>


More information about the xmonad mailing list