-
Notifications
You must be signed in to change notification settings - Fork 0
/
2-software.sh
executable file
·108 lines (90 loc) · 4.08 KB
/
2-software.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
#!/usr/bin/env bash
#----------------------------------------------------------------------------------
# __________ ._____ __ .__
# \______ \ _________ __| _/ \ / \____ ______________|__| ___________
# | _// _ \__ \ / __ |\ \/\/ |__ \\_ __ \_ __ \ |/ _ \_ __ \
# | | ( <_> ) __ \/ /_/ | \ / / __ \| | \/| | \/ ( <_> ) | \/
# |____|_ /\____(____ |____ | \__/\ / (____ /__| |__| |__|\____/|__|
# \/ \/ \/ \/ \/
#----------------------------------------------------------------------------------
echo -e "----------------------------------------------------------------------------------"
echo -e " __________ ._____ __ .__ "
echo -e " \\______ \\ _________ __| _/ \\ / \\____ ______________|__| ___________ "
echo -e " | _// _ \\__ \\ / __ |\\ \\/\\/ |__ \\\\_ __ \\_ __ \\ |/ _ \\_ __ \\ "
echo -e " | | ( <_> ) __ \\/ /_/ | \\ / / __ \\| | \\/| | \\/ ( <_> ) | \\/ "
echo -e " |____|_ /\\____(____ |____ | \\__/\\ / (____ /__| |__| |__|\\____/|__| "
echo -e " \\/ \\/ \\/ \\/ \\/ "
echo -e "----------------------------------------------------------------------------------"
sleep 2
set -e
echo ""
echo "--------------------------------------------------------------------------"
echo "- Installing AUR & Software "
echo "--------------------------------------------------------------------------"
# Only create starting and ending snapshots
# chroot doesn't have dbus
# no-dbus doesn't allow arguments
sudo snapper --no-dbus -c root create #--description \"Fresh Install\"
sudo snapper --no-dbus -c home create #--description \"Fresh Install\"
if [ -z "$(pacman -Q yay 2> /dev/null)" ]; then
echo "Installing YAY"
cd ~
rm -f -r yay
mkdir -p yay && cd yay
git clone "https://aur.archlinux.org/yay.git" .
makepkg -si --noconfirm
cd ..
rm -f -r yay
yay -Syu
else
echo "YAY is currently installed"
fi
ya () {
yay -S --noconfirm $@
}
echo "#### Installing sbupdate, a simple script and hooks for producing signed boot images"
ya sbupdate
# sbupdate is a simple script available from github and AUR that adds hooks
# for regenerating a complete image file (kernel, initramfs, cmdline) that's
# signed by your keys, every time the kernel updates.
# That way if the system works correctly, you can boot directly to the OS, skipping GRUB.
# You can go through it in the link below.
# GRUB will also be signed so you won't need to disable secure boot to use it.
# https://github.com/andreyv/sbupdate
echo "Signing current kernels and GRUB"
sudo sbupdate
echo "#### Installing Fonts"
ya nerd-fonts-fira-code awesome-terminal-fonts
ya adobe-source-han-sans-cn-fonts adobe-source-han-sans-jp-fonts adobe-source-han-sans-kr-fonts adobe-source-sans-fonts
ya ttf-inconsolata ttf-indic-otf ttf-roboto ttf-windows
echo "#### Installing AUR utils"
ya tlpui inxi snapper-gui-git
echo "#### Installing Apps"
ya zotero xournalpp libreoffice-still
ya vivaldi vivaldi-ffmpeg-codecs
# vs code requires gnome-keyring
ya visual-studio-code-bin solaar skypeforlinux-stable-bin keepassxc gnome-keyring
ya darktable inkscape rapid-photo-downloader gimp
echo "#### Installing Wacom Support"
ya kcm-wacomtablet xf86-input-wacom
echo "#### Installing LaTeX"
ya texlive-most texlive-langgreek texlive-latexindent-meta
PKGS=(
# 'autojump'
# 'lightly-git'
# 'lightlyshaders-git'
# 'mangohud' # Gaming FPS Counter
# 'mangohud-common'
# 'ocs-url' # install packages from websites
'snapper-gui-git'
'konsave'
)
for PKG in "${PKGS[@]}"; do
ya $PKG
done
# ya snap-pac
sudo snapper --no-dbus -c root create #--description \"Post Software\"
sudo snapper --no-dbus -c home create #--description \"Post Software\"
echo "--------------------------------------------------------------------------"
echo "- Finished "
echo "--------------------------------------------------------------------------"