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> <family>monospace</family>
<prefer> <prefer>
<family>MonoLisa</family> <family>MonoLisa</family>
<family>Symbols Nerd Font</family>
<family>Unifont</family> <family>Unifont</family>
</prefer> </prefer>
</alias> </alias>
@ -14,6 +15,13 @@
<family>Unifont</family> <family>Unifont</family>
</prefer> </prefer>
</alias> </alias>
<alias>
<family>serif</family>
<prefer>
<family>DejaVu Serif</family>
<family>Unifont</family>
</prefer>
</alias>
<alias> <alias>
<family>Helvetica</family> <family>Helvetica</family>
<prefer> <prefer>
@ -22,7 +30,14 @@
</prefer> </prefer>
</alias> </alias>
<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> <prefer>
<family>DejaVu Serif</family> <family>DejaVu Serif</family>
<family>Unifont</family> <family>Unifont</family>
@ -36,46 +51,37 @@
</prefer> </prefer>
</alias> </alias>
<alias> <alias>
<family>Charter</family> <family>Courier New</family>
<prefer> <prefer>
<family>DejaVu Serif</family> <family>MonoLisa</family>
<family>Unifont</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>DejaVu Serif</family>
<family>Unifont</family> <family>Unifont</family>
</prefer> </prefer>
</alias> </alias>
<match target="font"> <match target="font">
<test name="spacing" compare="eq"> <test name="family" compare="eq" ignore-blanks="true">
<const>mono</const> <string>MonoLisa</string>
</test> </test>
<edit name="embolden" mode="assign"> <edit name="fontfeatures" mode="append">
<bool>false</bool> <string>ss07 on</string>
</edit> <string>ss11 on</string>
</match> <string>ss18 on</string>
<dir>~/.fonts</dir> <string>zero on</string>
<match target="font"> <string>liga off</string>
<edit mode="assign" name="rgba"> <string>calt off</string>
<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> </edit>
</match> </match>
<match target="font"> <match target="font">
<edit mode="assign" name="antialias"> <edit mode="assign" name="antialias">
<bool>true</bool> <bool>true</bool>
</edit> </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> </match>
</fontconfig> </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 #: to get BIDI support, because it will force kitty to always treat
#: the text as LTR, which FriBidi expects for terminals. #: 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 #: E.g. symbol_map U+E0A0-U+E0A3,U+E0C0-U+E0C7 PowerlineSymbols
@ -2616,8 +2616,8 @@ include current-theme.conf
# BEGIN_KITTY_FONTS # BEGIN_KITTY_FONTS
font_family family='MonoLisa' style=Light 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 -liga +zero' bold_font family='MonoLisa' style=Medium features='+ss07 +ss11 +ss18 +zero -liga -calt'
italic_font family='MonoLisa' style='Light Italic' features='+ss07 +ss11 +ss18 -liga +zero' 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 -liga +zero' bold_italic_font family='MonoLisa' style='Medium Italic' features='+ss07 +ss11 +ss18 +zero -liga -calt'
# END_KITTY_FONTS # END_KITTY_FONTS

View File

@ -13,13 +13,13 @@ print_stat() {
if [ "$icon" = "░" ]; then if [ "$icon" = "░" ]; then
icon='▁' icon='▁'
fi 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" printf "%3d%%" "$content"
} }
print_icon() { print_icon() {
icon=$1 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) read -r -d '' -a cpu < <(sicli -i cpu -p0)
@ -46,7 +46,7 @@ status=$(
print_icon "" print_icon ""
print_stat "${cpu[0]}" "${cpu[1]}" print_stat "${cpu[0]}" "${cpu[1]}"
echo -n " $separator " echo -n " $separator "
print_icon "" print_icon ""
print_stat "${ram[0]}" "${ram[1]}" print_stat "${ram[0]}" "${ram[1]}"
echo -n " $separator " echo -n " $separator "
print_icon "" print_icon ""

View File

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