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:
parent
f0d8c7e093
commit
2586e88f82
2 changed files with 4 additions and 10 deletions
|
@ -6,7 +6,7 @@
|
|||
<string>monospace</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend" binding="strong">
|
||||
<string>Source Han Mono</string>
|
||||
<string>Noto Mono</string>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
|
@ -15,20 +15,14 @@ function install_gsettings() {
|
|||
dconf load "$gsettings_dir"
|
||||
}
|
||||
|
||||
function install_source_han_mono_fonts() {
|
||||
function install_fonts() {
|
||||
local uid
|
||||
local home
|
||||
local fonts_dir
|
||||
local fontconfig_dir
|
||||
uid=${SUDO_UID:-$(id -u)}
|
||||
home=$(eval "echo ~${SUDO_USER:-}")
|
||||
fonts_dir="$home/.local/share/fonts"
|
||||
fontconfig_dir="$home/.config/fontconfig/conf.d"
|
||||
sudo --user="#$uid" mkdir -p "$fonts_dir" "$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" mkdir -p "$fontconfig_dir"
|
||||
sudo --user="#$uid" \
|
||||
rsync -rv fontconfig/ "$fontconfig_dir/"
|
||||
fc-cache
|
||||
|
@ -50,5 +44,5 @@ function install_environment_d() {
|
|||
install_apt_packages
|
||||
install_gsettings settings.ini /
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue