commit 05d820e7c5defa807c2a4e9e13aa88c612066a7c
parent dce4867e0bf87432d301386bdc7285a35223fcb1
Author: Markus Hanetzok <markus@hanetzok.net>
Date: Mon, 27 Oct 2025 00:07:40 +0100
refactor script and change progs.list
- move back to pulseaudio after issues with pipewire
- add xsetroot again
- fix some stuff in install script
Diffstat:
2 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/post-install.sh b/post-install.sh
@@ -12,9 +12,11 @@ suckless="git://git.hanetzok.net"
### functions
slinstall() {
- sudo -u "$user" git clone "$suckless"/"$1" /home/"$user"/src/"$1"
+ echo "Installing $1"
+ sudo -u "$user" git clone "$suckless"/"$1" /home/"$user"/src/"$1" > /dev/null
cd /home/"$user"/src/"$1"
- sudo -u "$user" make && make install
+ sudo -u "$user" make > /dev/null
+ make install >/dev/null
}
if [ "$EUID" -ne 0 ]
@@ -31,7 +33,7 @@ cp ./progs.list /tmp
cp ./aur.list /tmp
cd /tmp
-echo "Set root password..."
+echo "!!! Set ROOT password !!!"
passwd
# user creation
@@ -44,7 +46,7 @@ passwd markus
# timezone & locale
echo "Set timezone and locale..."
echo "$locale UTF-8" >> /etc/locale.gen
-locale-gen
+locale-gen > /dev/null
echo "LANG=$locale" >> /etc/locale.conf
ln -sf /usr/share/zoneinfo/"$tz" /etc/localtime
@@ -67,7 +69,7 @@ rm ./progscleared.list
if ! hash yay
then
echo "Download and install yay..."
- git clone https://aur.archlinux.org/yay-bin /opt/yay-bin
+ git clone https://aur.archlinux.org/yay-bin /opt/yay-bin > /dev/null
chown "$user":"$user" -R /opt/yay-bin
cd /opt/yay-bin
sudo -u "$user" makepkg -si > /dev/null
@@ -75,15 +77,16 @@ then
fi
# install GRUB (UEFI)
-echo "Install grub..."
+echo "Install GRUB..."
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB > /dev/null
grub-mkconfig -o /boot/grub/grub.cfg > /dev/null
# set GRUB theme
-git clone https://github.com/dracula/grub.git /tmp/grub
+echo "Install GRUB theme..."
+git clone https://github.com/dracula/grub.git /tmp/grub > /dev/null
mv /tmp/grub/dracula /boot/grub/themes
echo "GRUB_THEME=/boot/grub/themes/dracula/theme.txt" >> /etc/default/grub
-grub-mkconfig -o /boot/grub/grub.cfg
+grub-mkconfig -o /boot/grub/grub.cfg > /dev/null
# set ZDOTDIR in zshenv to keep $HOME clean(er)
echo 'export ZDOTDIR="$HOME/.config/zsh"' >> /etc/zsh/zshenv
@@ -95,15 +98,16 @@ echo "blacklist pcspkr" > /etc/modprobe.d/nobeep.conf
# dotfiles
echo "Get dotfiles..."
rm -f /home/$user/.bash*
-git clone git://git.hanetzok.net/dotfiles /tmp/dotfiles
+git clone git://git.hanetzok.net/dotfiles /tmp/dotfiles > /dev/null
cp -r /tmp/dotfiles/.* /home/$user/
chown $user:$user -R /home/$user
# install stuff via git
-git clone "https://github.com/alexwlchan/dominant_colours.git" /tmp/dominant_colours
+"Install dominant_colours from GitHub (might take a while)..."
+git clone "https://github.com/alexwlchan/dominant_colours.git" /tmp/dominant_colours > /dev/null
chown "$user":"$user" /tmp/dominant_colours && cd /tmp/dominant_colours
-sudo -u "$user" rustup default stable
-sudo -u "$user" cargo install --path .
+sudo -u "$user" rustup default stable > /dev/null
+sudo -u "$user" cargo install --path . > /dev/null
# install suckless suite
sudo -u "$user" mkdir /home/"$user"/src
@@ -113,16 +117,12 @@ slinstall dmenu
# misc
+echo "Set options for GNOME keyring..."
echo "auth optional pam_gnome_keyring.so">> /etc/pam.d/login
echo "session optional pam_gnome_keyring.so auto_start" >> /etc/pam.d/login
-systemctl enable NetworkManager
-systemctl enable cups
+echo "Enabling services"
+systemctl enable NetworkManager > /dev/null
+systemctl enable cups > /dev/null
-# install from AUR
-clear
-echo "Installing packages from the AUR - User interaction needed!"
-while IFS='\n' read -r aur; do
- echo "Installing $aur..."
- sudo -u "$user" yay -S $prog > /dev/null
-done < ./aur.list
+echo "Done. You can now log in with your new user and run AUR installs if needed."
diff --git a/progs.list b/progs.list
@@ -46,10 +46,10 @@ xf86-video-amdgpu
### AUDIO & MUSIC ###
mpc
mpd
-pipewire-pulse
+pulseaudio
+pamixer
pulsemixer
ncmpcpp
-wireplumber
### FS UTILS ###
dosfstools
exfat-utils
@@ -81,7 +81,7 @@ xorg-server
xorg-xdpyinfo
xorg-xev
xorg-xinit
-#xorg-xsetroot
+xorg-xsetroot
hsetroot
### FONTS ###
ttf-liberation