-
Notifications
You must be signed in to change notification settings - Fork 0
/
font-sizes
executable file
·51 lines (34 loc) · 924 Bytes
/
font-sizes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
set -e
set -o pipefail
################################################################################
function setting {
local path key value
path="${1}"
key="${2}"
value="${3}"
gsettings set "org.gnome.desktop.${path}" "${key}" "${value}"
}
function font-sizes {
local size mono
size="Cantarell ${1}"
mono="JetBrains Mono Medium ${2}"
setting interface monospace-font-name "${mono}"
setting interface document-font-name "${size}"
setting interface font-name "${size}"
setting wm.preferences titlebar-font "${size}"
}
function usage {
cat <<EOM
Usage: $(basename "${0}") [-h | --help] <home|work>
-h, --help Show this help message.
EOM
}
function main {
case "${1}" in
-h|--help) usage ;;
work) font-sizes 14 15 ;;
*) font-sizes 10 11 ;;
esac
}
main "${@}"; exit