• R/O
  • SSH

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得windowscocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Commit MetaInfo

修订版ef73078afcf5e8509eaaa5acf087d18af8707927 (tree)
时间2022-08-01 03:03:23
作者Lorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

A script to install the fira fonts.

更改概述

差异

diff -r 67574a673309 -r ef73078afcf5 Bash-scripts/setup_fira_fonts.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Bash-scripts/setup_fira_fonts.sh Sun Jul 31 20:03:23 2022 +0200
@@ -0,0 +1,52 @@
1+#!/bin/bash
2+
3+clear
4+mkdir -p ~/.fonts
5+
6+wget --version > /dev/null
7+
8+if [[ $? -ne 0 ]]; then
9+ echo "wget not available , installing"
10+ sudo apt update && sudo apt install wget -y
11+fi
12+
13+unzip >> /dev/null
14+
15+if [[ $? -ne 0 ]]; then
16+ echo "unzip not available , installing"
17+ sudo apt update && sudo apt install unzip -y
18+fi
19+
20+
21+wget -O fonts.zip "https://fonts.google.com/download?family=Roboto|Noto%20Sans|Open%20Sans|Roboto%20Condensed|Source%20Sans%20Pro|Raleway|Merriweather|Roboto%20Slab|PT%20Sans|Open%20Sans%20Condensed|Droid%20Sans|Droid%20Serif|Fira%20Sans|Fira%20Sans%20Condensed|Fira%20Sans%20Extra%20Condensed|Fira%20Mono"
22+
23+wget -O firacode.zip "https://github.com/tonsky/FiraCode/releases/download/1.204/FiraCode_1.204.zip"
24+
25+if [[ $? -ne 0 ]]; then
26+ echo "Downloading failed , exiting"
27+ exit 1
28+fi
29+
30+unzip fonts.zip -d ~/.fonts
31+unzip firacode.zip -d ~/.fonts
32+
33+clear
34+echo "purging fonts cache "
35+fc-cache -v -f
36+clear
37+echo "Done"
38+sleep 2
39+clear
40+echo "Setting default fonts "
41+
42+gsettings set org.gnome.desktop.interface document-font-name 'Fira Sans Regular 11'
43+gsettings set org.gnome.desktop.interface font-name 'Fira Sans Regular 10'
44+gsettings set org.gnome.desktop.interface monospace-font-name 'Fira Mono Regular 12'
45+gsettings set org.gnome.nautilus.desktop font 'Fira Sans Regular 10'
46+gsettings set org.gnome.desktop.interface text-scaling-factor '1'
47+clear
48+
49+rm -rf fonts.zip
50+rm -rf firacode.zip
51+
52+echo "Done"
\ No newline at end of file