|
@@ -80,10 +80,10 @@ PACKAGES="${PACKAGES} mesa lib32-mesa dbus polkit giflib lib32-giflib mpg123 lib
|
|
|
PACKAGES="${PACKAGES} gnome-themes-extra hicolor-icon-theme"
|
|
PACKAGES="${PACKAGES} gnome-themes-extra hicolor-icon-theme"
|
|
|
|
|
|
|
|
# GUI dependencies
|
|
# GUI dependencies
|
|
|
-PACKAGES="${PACKAGES} gtk3 lib32-gtk3 pavucontrol pcmanfm-qt ffmpegthumbnailer tumbler xdg-utils xdg-user-dirs libxcomposite lib32-libxcomposite libxinerama lib32-libxinerama libxslt lib32-libxslt"
|
|
|
|
|
|
|
+PACKAGES="${PACKAGES} gtk3 lib32-gtk3 pavucontrol pcmanfm ffmpegthumbnailer tumbler xdg-utils xdg-user-dirs libxcomposite lib32-libxcomposite libxinerama lib32-libxinerama libxslt lib32-libxslt"
|
|
|
|
|
|
|
|
# vulkan packages
|
|
# vulkan packages
|
|
|
-PACKAGES="${PACKAGES} libva-mesa-driver lib32-libva-mesa-driver vulkan-tools vulkan-icd-loader lib32-vulkan-icd-loader vulkan-headers vulkan-validation-layers lib32-vulkan-validation-layers"
|
|
|
|
|
|
|
+PACKAGES="${PACKAGES} libva-mesa-driver lib32-libva-mesa-driver vulkan-tools vulkan-icd-loader lib32-vulkan-icd-loader vulkan-headers vulkan-validation-layers lib32-vulkan-validation-layers vulkan-mesa-layers lib32-vulkan-mesa-layers"
|
|
|
|
|
|
|
|
# Sway dependencies
|
|
# Sway dependencies
|
|
|
PACKAGES="${PACKAGES} sway swaybg alacritty wofi waybar xorg-xwayland xorg-xlsclients wev qt5-wayland glfw-x11 grim slurp xdg-desktop-portal-wlr libpipewire lib32-libpipewire wl-clipboard brightnessctl playerctl mako libappindicator-gtk3 lib32-libappindicator-gtk3"
|
|
PACKAGES="${PACKAGES} sway swaybg alacritty wofi waybar xorg-xwayland xorg-xlsclients wev qt5-wayland glfw-x11 grim slurp xdg-desktop-portal-wlr libpipewire lib32-libpipewire wl-clipboard brightnessctl playerctl mako libappindicator-gtk3 lib32-libappindicator-gtk3"
|
|
@@ -144,9 +144,11 @@ ln -sf /usr/bin/vim /usr/local/bin/vi
|
|
|
sed -i 's/!ccache/ccache/' /etc/makepkg.conf
|
|
sed -i 's/!ccache/ccache/' /etc/makepkg.conf
|
|
|
sed -i 's/^#MAKEFLAGS.*/MAKEFLAGS="-j$(($(nproc) + 1)) -l$(nproc)"/' /etc/makepkg.conf
|
|
sed -i 's/^#MAKEFLAGS.*/MAKEFLAGS="-j$(($(nproc) + 1)) -l$(nproc)"/' /etc/makepkg.conf
|
|
|
|
|
|
|
|
-# create sudo group and add to sudoers
|
|
|
|
|
|
|
+# create sudo group
|
|
|
groupadd -fr sudo
|
|
groupadd -fr sudo
|
|
|
-[ ! -f /etc/sudoers.d/sudo ] && echo '%sudo ALL=(ALL) ALL' > /etc/sudoers.d/sudo
|
|
|
|
|
|
|
+
|
|
|
|
|
+# temporarily make sudo passwordless for automation
|
|
|
|
|
+echo '%sudo ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/sudo
|
|
|
|
|
|
|
|
# update font cache
|
|
# update font cache
|
|
|
fc-cache -fr
|
|
fc-cache -fr
|
|
@@ -211,9 +213,6 @@ fi
|
|
|
su $username -c "mkdir -p ~/code/aur.archlinux.org"
|
|
su $username -c "mkdir -p ~/code/aur.archlinux.org"
|
|
|
export user_home="$(getent passwd $username | cut -d: -f6)/"
|
|
export user_home="$(getent passwd $username | cut -d: -f6)/"
|
|
|
|
|
|
|
|
-# temporarily override sudo for this user
|
|
|
|
|
-echo "${username} ALL= NOPASSWD: /usr/bin/pacman" > /etc/sudoers.d/${username}
|
|
|
|
|
-
|
|
|
|
|
# install qview
|
|
# install qview
|
|
|
sudo -u $username git clone https://aur.archlinux.org/qview.git ${user_home}/aur.archlinux.org/qview
|
|
sudo -u $username git clone https://aur.archlinux.org/qview.git ${user_home}/aur.archlinux.org/qview
|
|
|
(cd ${user_home}/aur.archlinux.org/qview && sudo -u ${username} makepkg -rcsi --noconfirm)
|
|
(cd ${user_home}/aur.archlinux.org/qview && sudo -u ${username} makepkg -rcsi --noconfirm)
|
|
@@ -235,8 +234,8 @@ sudo -u $username git clone https://aur.archlinux.org/vimix-cursors.git ${user_h
|
|
|
sudo -u $username git clone https://aur.archlinux.org/numix-icon-theme-git.git ${user_home}/aur.archlinux.org/numix-icon-theme-git
|
|
sudo -u $username git clone https://aur.archlinux.org/numix-icon-theme-git.git ${user_home}/aur.archlinux.org/numix-icon-theme-git
|
|
|
(cd ${user_home}/aur.archlinux.org/numix-icon-theme-git && sudo -u ${username} makepkg -rcsi --noconfirm)
|
|
(cd ${user_home}/aur.archlinux.org/numix-icon-theme-git && sudo -u ${username} makepkg -rcsi --noconfirm)
|
|
|
|
|
|
|
|
-# clear sudo override
|
|
|
|
|
-[ -f /etc/sudoers.d/${username} ] && rm /etc/sudoers.d/${username}
|
|
|
|
|
|
|
+# restore password requirement to sudo group
|
|
|
|
|
+echo '%sudo ALL=(ALL) ALL' > /etc/sudoers.d/sudo
|
|
|
|
|
|
|
|
# enable services for next reboot
|
|
# enable services for next reboot
|
|
|
which acpid &> /dev/null && systemctl enable acpid
|
|
which acpid &> /dev/null && systemctl enable acpid
|