1
0
Fork 0
mirror of https://github.com/kou029w/dotfiles.git synced 2025-01-18 08:05:01 +00:00

remove source-han-mono

This commit is contained in:
Nebel 2024-08-30 20:27:28 +09:00
parent f0d8c7e093
commit 2586e88f82
Signed by: nebel
GPG key ID: 79807D08C6EF6460
2 changed files with 4 additions and 10 deletions

View file

@ -6,7 +6,7 @@
<string>monospace</string> <string>monospace</string>
</test> </test>
<edit name="family" mode="prepend" binding="strong"> <edit name="family" mode="prepend" binding="strong">
<string>Source Han Mono</string> <string>Noto Mono</string>
</edit> </edit>
</match> </match>
</fontconfig> </fontconfig>

View file

@ -15,20 +15,14 @@ function install_gsettings() {
dconf load "$gsettings_dir" dconf load "$gsettings_dir"
} }
function install_source_han_mono_fonts() { function install_fonts() {
local uid local uid
local home local home
local fonts_dir
local fontconfig_dir local fontconfig_dir
uid=${SUDO_UID:-$(id -u)} uid=${SUDO_UID:-$(id -u)}
home=$(eval "echo ~${SUDO_USER:-}") home=$(eval "echo ~${SUDO_USER:-}")
fonts_dir="$home/.local/share/fonts"
fontconfig_dir="$home/.config/fontconfig/conf.d" fontconfig_dir="$home/.config/fontconfig/conf.d"
sudo --user="#$uid" mkdir -p "$fonts_dir" "$fontconfig_dir" sudo --user="#$uid" mkdir -p "$fontconfig_dir"
sudo --user="#$uid" \
curl \
-fsSL https://github.com/adobe-fonts/source-han-mono/releases/download/1.002/SourceHanMono.ttc \
-o "$fonts_dir/SourceHanMono.ttc"
sudo --user="#$uid" \ sudo --user="#$uid" \
rsync -rv fontconfig/ "$fontconfig_dir/" rsync -rv fontconfig/ "$fontconfig_dir/"
fc-cache fc-cache
@ -50,5 +44,5 @@ function install_environment_d() {
install_apt_packages install_apt_packages
install_gsettings settings.ini / install_gsettings settings.ini /
install_gsettings terminal-settings.ini "/org/gnome/terminal/legacy/profiles:/:$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')/" install_gsettings terminal-settings.ini "/org/gnome/terminal/legacy/profiles:/:$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')/"
install_source_han_mono_fonts install_fonts
install_environment_d install_environment_d