more font stuff

This commit is contained in:
Rudis Muiznieks 2024-08-29 17:55:25 -05:00
parent c5e22b357d
commit f5fca02ab8
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
5 changed files with 45 additions and 39 deletions

View File

@ -4,6 +4,7 @@
<family>monospace</family>
<prefer>
<family>MonoLisa</family>
<family>Symbols Nerd Font</family>
<family>Unifont</family>
</prefer>
</alias>
@ -14,6 +15,13 @@
<family>Unifont</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>DejaVu Serif</family>
<family>Unifont</family>
</prefer>
</alias>
<alias>
<family>Helvetica</family>
<prefer>
@ -22,7 +30,14 @@
</prefer>
</alias>
<alias>
<family>Times</family>
<family>Arial</family>
<prefer>
<family>DejaVu Sans</family>
<family>Unifont</family>
</prefer>
</alias>
<alias>
<family>Times New Roman</family>
<prefer>
<family>DejaVu Serif</family>
<family>Unifont</family>
@ -36,46 +51,37 @@
</prefer>
</alias>
<alias>
<family>Charter</family>
<family>Courier New</family>
<prefer>
<family>DejaVu Serif</family>
<family>Unifont</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>DejaVu Serif</family>
<family>MonoLisa</family>
<family>Unifont</family>
</prefer>
</alias>
<match target="font">
<test name="spacing" compare="eq">
<const>mono</const>
<test name="family" compare="eq" ignore-blanks="true">
<string>MonoLisa</string>
</test>
<edit name="embolden" mode="assign">
<bool>false</bool>
</edit>
</match>
<dir>~/.fonts</dir>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
<edit name="fontfeatures" mode="append">
<string>ss07 on</string>
<string>ss11 on</string>
<string>ss18 on</string>
<string>zero on</string>
<string>liga off</string>
<string>calt off</string>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
</edit>
</match>
</fontconfig>

Binary file not shown.

View File

@ -42,7 +42,7 @@ font_size 13.0
#: to get BIDI support, because it will force kitty to always treat
#: the text as LTR, which FriBidi expects for terminals.
# symbol_map
symbol_map U+E5FA-U+E6B5,U+E700-U+E7C5,U+ED00-U+F2FF,U+E200-U+E2A9,U+F0001-U+F1AF0,U+E300-U+E3E3,U+F400-U+F533,U+2665,U+26A1,U+E0A0-U+E0A2,U+E0B0-U+E0B3,U+E0AE,U+E0B4-U+E0C8,U+E0CA,U+E0CC-U+E0D7,U+23FB-U+23FE,U+2B58,U+F300-U+F375,U+E000-U+E00A,U+EA60-U+EC1E,U+276C-U+2771,U+2500-U+259f Symbols Nerd Font
#: E.g. symbol_map U+E0A0-U+E0A3,U+E0C0-U+E0C7 PowerlineSymbols
@ -2616,8 +2616,8 @@ include current-theme.conf
# BEGIN_KITTY_FONTS
font_family family='MonoLisa' style=Light features='+ss07 +ss11 +ss18 -liga +zero'
bold_font family='MonoLisa' style=Medium features='+ss07 +ss11 +ss18 -liga +zero'
italic_font family='MonoLisa' style='Light Italic' features='+ss07 +ss11 +ss18 -liga +zero'
bold_italic_font family='MonoLisa' style='Medium Italic' features='+ss07 +ss11 +ss18 -liga +zero'
font_family family='MonoLisa' style=Light features='+ss07 +ss11 +ss18 +zero -liga -calt'
bold_font family='MonoLisa' style=Medium features='+ss07 +ss11 +ss18 +zero -liga -calt'
italic_font family='MonoLisa' style='Light Italic' features='+ss07 +ss11 +ss18 +zero -liga -calt'
bold_italic_font family='MonoLisa' style='Medium Italic' features='+ss07 +ss11 +ss18 +zero -liga -calt'
# END_KITTY_FONTS

View File

@ -13,13 +13,13 @@ print_stat() {
if [ "$icon" = "░" ]; then
icon='▁'
fi
echo -n "<span background='$c_dark' foreground='$c_bar'>$icon</span>"
echo -n "<span font_family='Symbols Nerd Font' background='$c_dark' foreground='$c_bar'>$icon</span>"
printf "%3d%%" "$content"
}
print_icon() {
icon=$1
echo -n "<span foreground='$c_icon'>$icon</span> "
echo -n "<span font_family='Symbols Nerd Font' foreground='$c_icon'>$icon</span> "
}
read -r -d '' -a cpu < <(sicli -i cpu -p0)
@ -46,7 +46,7 @@ status=$(
print_icon ""
print_stat "${cpu[0]}" "${cpu[1]}"
echo -n " $separator "
print_icon ""
print_icon ""
print_stat "${ram[0]}" "${ram[1]}"
echo -n " $separator "
print_icon ""

View File

@ -1,6 +1,6 @@
bar {
position top
font "MonoLisa" 13
font pango:MonoLisa 13
status_command while ~/skynet/scripts/swaystatus.sh; do sleep 3; done
pango_markup enabled