2017-08-07 14:30:30 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
echo "~> Installing i3"
|
|
|
|
pacstrap /mnt i3 feh xcompmgr dmenu acpi
|
|
|
|
|
2017-08-10 19:24:32 +00:00
|
|
|
user=$(ls /mnt/home)
|
|
|
|
if [ "$user" == "" ]; then
|
|
|
|
path="/mnt/etc/skel/"
|
|
|
|
else
|
|
|
|
path="/mnt/home/$user/"
|
|
|
|
fi
|
|
|
|
|
2017-08-07 14:30:30 +00:00
|
|
|
echo "~> Creating .xinitrc"
|
2017-08-10 19:24:32 +00:00
|
|
|
echo "xcompmgr -c &" > $path/.xinitrc
|
2017-09-02 23:35:07 +00:00
|
|
|
echo "feh --bg-fill /etc/wallpapers/\$(ls /etc/wallpapers/ | shuf -n 1)" >> $path/.xinitrc
|
2017-08-10 19:24:32 +00:00
|
|
|
echo "exec i3" >> $path/.xinitrc
|
2017-09-02 13:07:59 +00:00
|
|
|
|
|
|
|
amf_return=0
|