#!/bin/bash

################################################################################
# Title:        0520-applications.hook.chroot
# Description:  Script to remove packages and other things
# Author:       manuel rosa <manuelsilvarosa@gmail.com>
# Date:         Outubro 29, 2023
# License:      GPL-3.0-or-later
################################################################################

# Remove software
apt --purge --yes autoremove \
   murrine-themes \
  hv3 \
  libsqlite3-tcl \
  libtcl8.6 \
  libtk-img \
  libtk8.6 \
  tcl \
  tcl-tls \
  tcl8.6  \
  tcllib \
  tk \
  tk-html3 \
  tk8.6 \
  konsole \
  evolution \
  termit \
  systemsettings \
  nvidia* \
  imagemagick*

# Lowers the footprint in RAM at the small expense of added size to the ISO.
#update-icon-caches /usr/share/icons/*
find /usr/share/icons -type d -exec gtk-update-icon-cache -f {} \;

# add flatpak repo to gnome-software
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

# add-architecture i386
dpkg --add-architecture i386
