forked from ChrisTitusTech/ArchTitus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path3-user.sh
executable file
·50 lines (42 loc) · 2.25 KB
/
3-user.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
#!/usr/bin/env bash
#--------------------------------------------------------------------
# █████╗ ██████╗ ██████╗██╗ ██╗██████╗ █████╗ ██╗ ██╗███████╗
# ██╔══██╗██╔══██╗██╔════╝██║ ██║██╔══██╗██╔══██╗██║ ██║██╔════╝
# ███████║██████╔╝██║ ███████║██║ ██║███████║██║ ██║█████╗
# ██╔══██║██╔══██╗██║ ██╔══██║██║ ██║██╔══██║╚██╗ ██╔╝██╔══╝
# ██║ ██║██║ ██║╚██████╗██║ ██║██████╔╝██║ ██║ ╚████╔╝ ███████╗
# ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝
#--------------------------------------------------------------------
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
source $SCRIPT_DIR/install.conf
if [ $(whoami) = "root" ]; then
echo "Don't run this as root!"
exit
fi
$SCRIPT_DIR/functions/dotfiles.sh
if ! pacman -Qi yay &>/dev/null; then
$SCRIPT_DIR/functions/install/yay.sh
fi
echo -ne "
--------------------------------------------------------------------
Installing AUR Packages
--------------------------------------------------------------------
"
$SCRIPT_DIR/functions/install/install-packages.sh --aur aur
mkdir -p ~/.config/autostart
cat <<EOF > ~/.config/autostart/wallpaper-post-startup.desktop
[Desktop Entry]
Exec=$SCRIPT_DIR/functions/wallpaper.sh
Icon=dialog-scripts
Name=wallpaper-post-startup
Path=
Type=Application
X-KDE-AutostartScript=true
X-KDE-autostart-phase=2
X-KDE-startup-notify=false
EOF
echo -ne "
--------------------------------------------------------------------
System ready for 4-post-setup.sh
--------------------------------------------------------------------
"