mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-25 03:08:34 +02:00
polybar: tentative to use Material Icons
This commit is contained in:
parent
113efb421f
commit
4e152f0466
2 changed files with 4 additions and 2 deletions
|
@ -30,6 +30,7 @@ def icon(font_number, char):
|
||||||
# Font number is from Polybar configuration.
|
# Font number is from Polybar configuration.
|
||||||
# 2: https://fontawesome.com/v6.0/icons?s=solid
|
# 2: https://fontawesome.com/v6.0/icons?s=solid
|
||||||
# 3: https://fontawesome.com/v6.0/icons?s=brands
|
# 3: https://fontawesome.com/v6.0/icons?s=brands
|
||||||
|
# 4: https://fonts.google.com/icons?selected=Material+Icons:home
|
||||||
return "%%{T%d}%s%%{T-}" % (font_number, char)
|
return "%%{T%d}%s%%{T-}" % (font_number, char)
|
||||||
|
|
||||||
|
|
||||||
|
@ -62,8 +63,8 @@ icons = {
|
||||||
"wifi-medium": icon(2, ""),
|
"wifi-medium": icon(2, ""),
|
||||||
"wifi-high": icon(2, ""),
|
"wifi-high": icon(2, ""),
|
||||||
"wired": icon(2, ""),
|
"wired": icon(2, ""),
|
||||||
"notifications-enabled": icon(2, ""),
|
"notifications-enabled": icon(4, "\ue7f4"),
|
||||||
"notifications-disabled": icon(2, "🔕"),
|
"notifications-disabled": icon(4, "\ue7f8"),
|
||||||
}
|
}
|
||||||
application_icons_nomatch = icon(2, "")
|
application_icons_nomatch = icon(2, "")
|
||||||
application_icons_alone = {application_icons[k] for k in {"vbeterm"}}
|
application_icons_alone = {application_icons[k] for k in {"vbeterm"}}
|
||||||
|
|
|
@ -28,6 +28,7 @@ foreground = ${colors.foreground}
|
||||||
font-0 = Iosevka:style=Regular:size=10;2
|
font-0 = Iosevka:style=Regular:size=10;2
|
||||||
font-1 = Font Awesome 6 Pro:style=Solid:size=10;2
|
font-1 = Font Awesome 6 Pro:style=Solid:size=10;2
|
||||||
font-2 = Font Awesome 6 Brands:style=Regular:size=10;2
|
font-2 = Font Awesome 6 Brands:style=Regular:size=10;2
|
||||||
|
font-3 = Material Icons:style=Regular:size=12;4
|
||||||
|
|
||||||
modules-left = i3
|
modules-left = i3
|
||||||
modules-center = date
|
modules-center = date
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue