-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnord
executable file
·47 lines (37 loc) · 1.49 KB
/
nord
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
#!/bin/bash
link="https://github.com/Betelgeuse1/NordThemeGeany/blob/master/README.md"
help="Nord Theme Geany installation options:
usage: ./nord\t\tOnly install the nord theme (conf file) for Geany
usage: ./nord -g | --gtk\tInstall the nord GTK theme for Geany and the nord theme (conf file)
usage: ./nord -h | --help\tShow this help
-g, --gtk\t\tInstall the nord GTK theme for Geany
-h, --help\t\tShow this help
README: ${link}"
if [ ! -f ./styling/nord.conf ] && [ ! -f ./styling/nord.css ]; then
echo "Required files are missing inside the current folder"
exit 1
fi
if [ ! -e ~/.config/geany/colorschemes ]; then
echo "Creating a colorschemes folder inside ~/.config/geany"
mkdir ~/.config/geany/colorschemes
echo # \n
fi
if [ $# -ne 0 ] && ([ $1 = "-h" ] || [ $1 = "--help" ]); then
echo -e "${help}"
exit 0
fi
# Add the nord theme config file to the geany colorschemes folder
echo "Adding the nord theme to the available geany themes"
cat ./styling/nord.conf > ~/.config/geany/colorschemes/nord.conf
echo # \n
# Make a copy of the current geany.css file
# and install the nord.css file
if [ $# -ne 0 ] && ([ $1 = "-g" ] || [ $1 = "--gtk" ]); then
echo "Save the current geany.css file into old_geany.css"
mv ~/.config/geany/geany.css ~/.config/geany/old_geany.css
echo "Copy nord.css to geany.css"
cat ./styling/nord.css > ~/.config/geany/geany.css
echo # \n
fi
echo "Everything is finished, you just need to select the right theme in Geany"
echo "See ${link} for help"