Add flavours i3 and xorg; add choice for flavours; add reboot

This commit is contained in:
maride 2017-08-07 16:30:30 +02:00
parent 93273b4f7f
commit d27a676a8a
3 changed files with 32 additions and 7 deletions

8
flavours/i3/install.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/sh
echo "~> Installing i3"
pacstrap /mnt i3 feh xcompmgr dmenu acpi
echo "~> Creating .xinitrc"
echo "xcompmgr -c &" > /mnt/home/$username/.xinitrc
echo "exec i3" >> /mnt/home/$username/.xinitrc

3
flavours/xorg/install.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
pacstrap /mnt xorg xorg-xinit

View File

@ -48,6 +48,10 @@ done
for flavour in flavours/*.flavour
do
echo -n "=> Do you want to run flavour '$flavour'? (y/N) "
read answer
if [ "$answer" == "y" ]; then
echo "=> Running flavour '$flavour'..."
pushd $flavour
$flavour/run.sh
@ -56,4 +60,14 @@ do
echo "=> Flavour failed. :("
fi
popd
fi
done
echo -n "=> Finished \o/ reboot now? (Y/n) "
read answer
if [ "$answer" == "n" ]; then
exit
fi
reboot