1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
common-configs/i3/helpers/barista/nerdfont-provider.go

21 lines
349 B

package main
//go:generate go run nerdfont-process-css.go
import (
"barista.run/pango/icons"
)
type Glyph struct {
Key string
Rune rune
}
func installNerdFontProvider(face string) *icons.Provider {
nf := icons.NewProvider("nf")
nf.Font(face)
for _, glyph := range NerdFontGlyphs {
nf.Symbol(glyph.Key, string(glyph.Rune))
}
return nf
}