Compare commits

...

2 Commits

4 changed files with 21 additions and 3 deletions

View File

@ -61,7 +61,7 @@ scrolling:
font:
# Normal (roman) font face
normal:
family: Pragmata Pro
family: MonoFont
style: Regular
size: {{ .alacritty.font.size }}

View File

@ -0,0 +1,12 @@
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>MonoFont</family>
<prefer>
<family>Pragmata Pro</family>
<family>Font Awesome 6 Free Regular</family>
<family>Font Awesome 6 Brands Regular</family>
</prefer>
</alias>
</fontconfig>

View File

@ -33,7 +33,7 @@ set $right i
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:FontAwesome, Pragmata Pro {{ .i3.font_size }}
font pango:MonoFont {{ .i3.font_size }}
#class background border text split
client.focused $color8 $color8 $foreground $color7

View File

@ -72,7 +72,8 @@ WINDOW_ICONS: dict[str, str] = {
'libreoffice-writer': fa.icons['file-alt'],
'lutris': fa.icons['gamepad'],
'mpv': fa.icons['video'],
'multimc': fa.icons['cube'],
'polymc': fa.icons['cube'],
'minecraft': fa.icons['cube'],
'mupdf': fa.icons['file-pdf'],
'nemiver': fa.icons['bug'],
'nm-connection-editor': fa.icons['wifi'],
@ -157,8 +158,13 @@ def icon_for_window(window) -> str:
return DEFAULT_ICON
for cls in map(lambda x: x.lower(), classes):
if 'minecraft' in cls:
return WINDOW_ICONS['minecraft']
if cls in WINDOW_ICONS:
return WINDOW_ICONS[cls]
else:
print(f'No icon available for: {classes}')
return DEFAULT_ICON