-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
executable file
·54 lines (44 loc) · 1.29 KB
/
deploy.sh
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
52
53
54
#!/bin/sh
#configs
#uncomment to enable
ENABLE_THEME=true
ENABLE_FONT=true
deploy_theme() {
sudo add-apt-repository ppa:numix/ppa
sudo add-apt-repository ppa:snwh/pulp
sudo apt-get update
#gtk numix
sudo apt install numix-gtk-theme
xfconf-query -c xsettings -p /Net/ThemeName -s "Numix"
xfconf-query -c xfwm4 -p /general/theme -s "Numix"
#paper icons
sudo apt-get install paper-icon-theme
xfconf-query -c xsettings -p /Net/IconThemeName -s 'Paper'
#cursor
xfconf-query -c xsettings -p /Net/IconThemeName -s 'Paper'
sudo apt-get install paper-cursor-theme
xfconf-query -c xsettings -p /Gtk/CursorThemeName -s 'Paper'
}
deploy_font() {
sudo apt install python-pip eog &&
mkdir -p $HOME/roboto-src &&
cd $HOME/roboto-src &&
git clone https://github.com/google/roboto.git &&
cd roboto &&
pip install -r requirements.txt &&
make &&
mkdir $HOME/.fonts
cp $HOME/roboto-src/roboto/out/RobotoOTF/* $HOME/.fonts
}
if $ENABLE_THEME; then
echo "Deploying theme..."
deploy_theme
fi
if $ENABLE_FONT; then
echo "Deploying font..."
deploy_font &&
xfconf-query -c xsettings -p /Gtk/FontName -s 'Roboto 11'
else
echo "Using default font..."
xfconf-query -c xsettings -p /Gtk/FontName -s 'Noto Sans 9'
fi