Add flavours i3 and xorg; add choice for flavours; add reboot
This commit is contained in:
parent
93273b4f7f
commit
d27a676a8a
8
flavours/i3/install.sh
Normal file
8
flavours/i3/install.sh
Normal 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
3
flavours/xorg/install.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pacstrap /mnt xorg xorg-xinit
|
14
install.sh
14
install.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user