-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathset-fonts.sh
More file actions
executable file
·30 lines (26 loc) · 1.17 KB
/
set-fonts.sh
File metadata and controls
executable file
·30 lines (26 loc) · 1.17 KB
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
#!/bin/bash
# Set Fonts
if ! rpm -q liberation-fonts >/dev/null 2>&1; then
echo "Please install the package liberation-fonts"
exit 0
fi
case "$1" in
default)
gconftool-2 --set /apps/nautilus/preferences/desktop_font --type string "Sans 10"
gconftool-2 --set /desktop/gnome/interface/document_font_name --type string "Sans 10"
gconftool-2 --set /desktop/gnome/interface/font_name --type string "Sans 10"
gconftool-2 --set /apps/metacity/general/titlebar_font --type string "Sans Bold 10"
gconftool-2 --set /desktop/gnome/interface/monospace_font_name --type string "Monospace 10"
;;
liberation)
gconftool-2 --set /apps/nautilus/preferences/desktop_font --type string "Liberation Sans 9"
gconftool-2 --set /desktop/gnome/interface/document_font_name --type string "Liberation Sans 9"
gconftool-2 --set /desktop/gnome/interface/font_name --type string "Liberation Sans 9"
gconftool-2 --set /apps/metacity/general/titlebar_font --type string "Liberation Sans Bold 9"
gconftool-2 --set /desktop/gnome/interface/monospace_font_name --type string "Liberation Mono 9"
;;
*)
echo "Please run ./set-fonts.sh default or ./set-fonts.sh liberation"
;;
esac
exit $?