|
|
|
|
@@ -9,13 +9,16 @@ source ./scripts/functions
|
|
|
|
|
|
|
|
|
|
### Global variables
|
|
|
|
|
_DIRNAME="$(pwd)"
|
|
|
|
|
_PACKAGES=(arc-gtk-theme chromium code curl discord dmenu dunst egl-wayland feh flameshot flatpak firefox htop hyprland i3lock i3-wm imagemagick lxappearance mpv nwg-look otf-comicshanns-nerd pavucontrol pipewire pipewire-jack pipewire-pulse polybar neofetch numlockx papirus-icon-theme picom plocate polybar remmina ttf-dejavu-nerd wget wireguard-tools xdg-desktop-portal xorg xorg-xinit)
|
|
|
|
|
_PACKAGES=(arc-gtk-theme chromium code curl discord dmenu dunst egl-wayland feh flameshot flatpak firefox htop hyprland i3lock i3-wm imagemagick kitty lxappearance mpv neofetch numlockx nwg-look otf-comicshanns-nerd papirus-icon-theme pavucontrol picom pipewire pipewire-jack pipewire-pulse rofi plocate polybar reflector remmina ttf-dejavu-nerd wget wireguard-tools xdg-desktop-portal xorg xorg-xinit)
|
|
|
|
|
|
|
|
|
|
### Configure pacman and install needeed packages
|
|
|
|
|
_info "Configuring and updateing packages"
|
|
|
|
|
_msg "Configuring pacman"
|
|
|
|
|
sed -i "s|^#Color.*|Color|" /etc/pacman.conf
|
|
|
|
|
sed -i "s|^#ParallelDownloads.*|ParallelDownloads = 10|" /etc/pacman.conf
|
|
|
|
|
_msg "Configuring reflector"
|
|
|
|
|
ln -sf "$_DIRNAME/links/reflector/reflector.conf" /etc/xdg/reflector/reflector.conf
|
|
|
|
|
ln -sf "/usr/lib/systemd/system/reflector.timer" "/etc/systemd/system/timers.target.wants/reflector.timer"
|
|
|
|
|
_msg "Updating packages"
|
|
|
|
|
pacman -Syu --noconfirm
|
|
|
|
|
_msg "Installing needeed packages"
|
|
|
|
|
@@ -77,6 +80,8 @@ mkdir -p ~/.local/share/applications
|
|
|
|
|
ln -sf "$_DIRNAME/links/applications/teams.desktop" ~/.local/share/applications/teams.desktop
|
|
|
|
|
sed -i "s|^Exec=.*|Exec=code-oss --no-sandbox|" /usr/share/applications/code-oss.desktop
|
|
|
|
|
sed -i "s|^Icon=.*|Icon=vscode|" /usr/share/applications/code-oss.desktop
|
|
|
|
|
sed -i 's|Exec=/usr/bin/chromium %U|Exec=/usr/bin/chromium --no-sandbox %U|' /usr/share/applications/chromium.desktop
|
|
|
|
|
sed -i 's|Exec=/usr/bin/chromium --incognito|Exec=/usr/bin/chromium --no-sandbox --incognito|' /usr/share/applications/chromium.desktop
|
|
|
|
|
_msg "links kitty"
|
|
|
|
|
mkdir -p ~/.config/kitty
|
|
|
|
|
ln -sf "$_DIRNAME/links/kitty/kitty.conf" ~/.config/kitty/kitty.conf
|
|
|
|
|
@@ -94,14 +99,21 @@ then
|
|
|
|
|
fi
|
|
|
|
|
if [[ $_LOCATION == "home" ]]
|
|
|
|
|
then
|
|
|
|
|
_info "Configuring for work"
|
|
|
|
|
_info "Configuring for home"
|
|
|
|
|
sed -i "s|^include /etc/i3.*|include /etc/i3/home|" ./links/i3wm/config
|
|
|
|
|
sed -i "s|^include-file = /etc/polybar/work.ini|include-file = /etc/polybar/home.ini|" ./links/polybar/config.ini
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
### Add no sandbox
|
|
|
|
|
_info "Add --no-sandbox if needed"
|
|
|
|
|
### nvidia vs amd
|
|
|
|
|
|
|
|
|
|
### Print kernel cmdline
|
|
|
|
|
_info "Dont forget to update /etc/hernel/cmdline (require mkinitcpio -P after)"
|
|
|
|
|
printf "cryptdevice=UUID=%s:rootfs root=UUID=%s rootflags=subvol=@ rw initrd=\\intel-ucode.img initrd=\\initramfs-linux.img loglevel=3 %s intel_iommu=on iommu=pt nvidia_drm.fbdev=1 nvidia_drm.modeset=1\n" \
|
|
|
|
|
"$(blkid --match-token LABEL=sys -s UUID -o value)" \
|
|
|
|
|
"$(blkid --match-token LABEL=root -s UUID -o value)" \
|
|
|
|
|
"$(_kernel_colors)"
|
|
|
|
|
|
|
|
|
|
### Wait for user
|
|
|
|
|
_info "Update sucessfull"
|
|
|
|
|
|