-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·146 lines (119 loc) · 3.99 KB
/
install.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#!/bin/bash
echo "this script requires wget and curl to be installed"
if ! command -v wget &> /dev/null
then
echo "wget not installed, quitting."
exit
fi
if ! command -v curl &> /dev/null
then
echo "curl not installed, quitting."
exit
fi
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# locations
SCRIPTS=$HOME/.scripts
CONFIG=$HOME/.config
WALLPAPER=$HOME/.wallpaper
SCREENSHOTS=$HOME/Screenshots
LOCAL=$HOME/.local
ICONS=$HOME/.icons
# create all directories
mkdir -p $CONFIG
mkdir -p $SCRIPTS
mkdir -p $WALLPAPER
mkdir -p $SCREENSHOTS
mkdir -p $LOCAL
mkdir -p $ICONS
# interactively copy this repo's contents
cp -ri $SCRIPT_DIR/Scripts/* $SCRIPTS
cp -ri $SCRIPT_DIR/Config/* $CONFIG
cp -ri $SCRIPT_DIR/Wallpaper/* $WALLPAPER
cp -ri $SCRIPT_DIR/Screenshots/* $SCREENSHOTS
cp -ri $SCRIPT_DIR/Local/* $LOCAL
cp -ri $SCRIPT_DIR/Icons/* $ICONS
# misc stuff
cp -i $SCRIPT_DIR/.zshrc ~/.zshrc
cp -i $SCRIPT_DIR/.zprofile ~/.zprofile
cp -i $SCRIPT_DIR/.aliases ~/.aliases
cp -i $SCRIPT_DIR/.gtkrc-2.0 ~/.gtkrc-2.0
# copy zsh prompt
mkdir $LOCAL/src/zsh-prompt -p
wget https://raw.githubusercontent.com/the-argus/functional-dots/main/.local/src/zsh-prompt/minimal.zsh -O $LOCAL/src/zsh-prompt/minimal.zsh
echo "COPYING UNGOOGLED CHROMIUM INFO TO ARCH PACMAN.CONF"
curl -s 'https://download.opensuse.org/repositories/home:/ungoogled_chromium/Arch/x86_64/home_ungoogled_chromium_Arch.key' | sudo pacman-key -a -
echo '
[home_ungoogled_chromium_Arch]
SigLevel = Required TrustAll
Server = https://download.opensuse.org/repositories/home:/ungoogled_chromium/Arch/$arch' | sudo tee --append /etc/pacman.conf
sudo pacman -Syu
echo "INSTALLING YAY"
git clone https://aur.archlinux.org/yay.git
cd $SCRIPT_DIR/yay
sudo pacman -S go
makepkg
sudo pacman -U *.zst
sudo pacman -Rsn go
cd $SCRIPT_DIR
rm -rf $SCRIPT_DIR/yay
# install all my packages
echo "INSTALLING ALL SOFTWARE"
sudo pacman -S $(cat paclist)
yay -S $(cat yaylist)
echo "INSTALLING ROSE-PINE-GTK"
wget https://github.com/rose-pine/gtk/releases/download/v2.0.0/AllRosePineThemesGTK.tar.gz
wget https://github.com/rose-pine/gtk/releases/download/v2.0.0/AllRosePineThemesIcons.tar.gz
tar xf AllRosePineThemesGTK.tar.gz
tar xf AllRosePineThemesIcons.tar.gz
rm AllRosePineThemesGTK.tar.gz
rm AllRosePineThemesIcons.tar.gz
sudo cp -r AllRosePineThemesGTK/rose-pine-gtk /usr/share/themes
sudo cp -r AllRosePineThemesIcons/rose-pine-icons /usr/share/icons
rm -rf AllRosePineThemesGTK
rm -rf AllRosePineThemesIcons
echo "STARTING FIREFOX AND CUSTOMIZING PROFILE"
echo ">> launching firefox without gui..."
firefox --headless &
# store most recently launched programs PID
FIREFOX_PID = $!
echo ">> sleeping to wait for process..."
sleep 5
echo ">> downloading arkenfox user.js..."
git clone https://github.com/arkenfox/user.js $SCRIPT_DIR/userjs
echo ">> installing arkenfox user.js..."
FDIR=~/.mozilla/firefox/*default-release*/
cp -r $SCRIPT_DIR/userjs/* $FDIR
rm -rf $SCRIPT_DIR/userjs
echo ">> installing my user overrides..."
cp $SCRIPT_DIR/Extra/Firefox/user-overrides.js $FDIR
echo ">> appending user settings..."
$FDIR/updater.sh
echo ">> installing rose pine userchrome..."
cp -r $SCRIPT_DIR/Extra/Firefox/chrome $FDIR
# kill firefox
kill $FIREFOX_PID
echo ">> installing spicetify..."
sudo chmod a+wr /opt/spotify
sudo chmod a+wr /opt/spotify/Apps -R
spicetify backup
BACK=$(pwd)
SC="$(dirname "$(spicetify -c)")"
cd $SC
cd CustomApps
echo ">> installing spicetify marketplace"
git clone https://github.com/spicetify/spicetify-marketplace
spicetify config custom_apps spicetify-marketplace
cd ../Themes
git clone https://github.com/spicetify/spicetify-themes
cp spicetify-themes/* . -r
rmdir spicetify-themes
cd $BACK
echo ">> installing dribbblish theme for spotify"
$SCRIPT_DIR/Scripts/spicetify/dribbblish/install.sh
echo ">> setting zathura and md2pdf as default markdown viewer"
xdg-mime default markdown.desktop text/markdown
# reminder
echo 'reminders for myself:
- install ssh keys, set directory to chmod 700, private key to 600, and
pub key to 644
'