-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·23 lines (15 loc) · 1.15 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
# copy icon to ~/.icons
mkdir -p ~/.icons/ && cp ./bin/io.gitlab.hamadmarri.gamma.svg ~/.icons/io.gitlab.hamadmarri.gamma.svg
mkdir -p ~/.local/share/icons/ && cp ./bin/io.gitlab.hamadmarri.gamma.svg ~/.local/share/icons/io.gitlab.hamadmarri.gamma.svg
mkdir -p ~/.icons/ && cp ./bin/io.gitlab.hamadmarri.gamma-symbolic.svg ~/.icons/io.gitlab.hamadmarri.gamma-symbolic.svg
mkdir -p ~/.local/share/icons/ && cp ./bin/io.gitlab.hamadmarri.gamma-symbolic.svg ~/.local/share/icons/io.gitlab.hamadmarri.gamma-symbolic.svg
# edit io.gitlab.hamadmarri.gamma.desktop put the path
cp ./bin/io.gitlab.hamadmarri.gamma.desktop.bak ./bin/io.gitlab.hamadmarri.gamma.desktop
sed -i -e "s,\[gamma path placeholder\],$PWD/bin/gamma," ./bin/io.gitlab.hamadmarri.gamma.desktop
# and move to ~/.local/share/applications
mkdir -p ~/.local/share/applications/ && mv ./bin/io.gitlab.hamadmarri.gamma.desktop ~/.local/share/applications/
# copy gtksource styles
mkdir -p ~/.local/share/gtksourceview-4/styles/ && cp ./gtksourceview_styles/* ~/.local/share/gtksourceview-4/styles/
# create a symbolic link to gamma sh file
sudo ln -s $PWD/bin/gamma /usr/bin/gamma-editor