Skip to content

Commit

Permalink
Added things
Browse files Browse the repository at this point in the history
  • Loading branch information
treel0ver committed Jan 10, 2023
1 parent f602ef6 commit 779a612
Showing 1 changed file with 50 additions and 5 deletions.
55 changes: 50 additions & 5 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
# (my cinnamon key shortcuts)
echo -n "Do you want to import Cinnamon DE shortcuts? (yes/no) "
read answer
case $answer in
[Yy]|[Yy][Ee][Ss])
echo "Importing..."
dconf load /org/cinnamon/desktop/keybindings/ < dconf-settings.conf
;;
[Nn]|[Nn][Oo])
echo "No shortcuts were imported."
;;
*)
echo "Invalid input. Please enter 'yes' or 'no'."
;;
esac

# checking for sudo/doas (literally every command needs it)
if [ "$(id -u)" -ne 0 ]; then
echo "You have to run as root (sudo)."
echo "You have to run as root (sudo/doas)."
exit 1
fi

# base install
pacman -Sy
cat universe.conf >> /etc/pacman.conf
pacman -Sy
Expand All @@ -11,7 +30,33 @@ yes | pacman -Sy artix-archlinux-support
cat mirrorlist.conf >> /etc/pacman.conf
pacman-key --populate archlinux
yes | pacman -Syu
# personal selection:
pacman -S --noconfirm --needed git base-devel chromium go lua nvidia nvidia-utils virtualbox code pypy3 nodejs npm ffmpeg git wget micro fish zsh youtube-dl noto-fonts-emoji gucharmap pulseaudio pavucontrol bluez ranger ncdu flameshot
# (my cinnamon key shortcuts)
dconf load /org/cinnamon/desktop/keybindings/ < dconf-settings.conf

echo -n "Do you want an extra software list or not? (yes/no) "
read answer
case $answer in
[Yy]|[Yy][Ee][Ss])
echo "Going with the full install..."
words=$(cat package.list)
tempfile=$(mktemp)
dialog --checklist "Choose one or more words:" 20 60 10 \
$(for word in $words; do echo "$word" "$word" OFF; done) 2>$tempfile
choices=$(cat $tempfile)
for choice in $choices
do
if [[ $words =~ (^|[[:space:]])"$choice"($|[[:space:]]) ]]
then
echo "You chose '$choice'"
fi
done
rm $tempfile
pacman -S --noconfirm --needed git base-devel $choices
;;
[Nn]|[Nn][Oo])
pacman -S --noconfirm --needed git base-devel
;;
*)
echo "Invalid input. Please enter 'yes' or 'no'."
;;
esac


0 comments on commit 779a612

Please sign in to comment.