Update 5 files
- /home/.chezmoiscripts/ubuntu/run_onchange_before_10_install-ubuntu-dependencies.tmpl - /home/.chezmoiscripts/ubuntu/run_onchange_before_10-install-ubuntu-dependencies.tmpl - /home/.chezmoiscripts/_universal/run_onchange_before_10-remove-bloatware.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_85-remove-shortcuts.tmpl - /home/.chezmoidata.yaml
This commit is contained in:
parent
9ab07ebf17
commit
7d0e87d9ea
4 changed files with 55 additions and 1 deletions
|
@ -23,6 +23,18 @@ config:
|
||||||
gpg: https://raw.githubusercontent.com/drduh/config/master/gpg.conf
|
gpg: https://raw.githubusercontent.com/drduh/config/master/gpg.conf
|
||||||
fonts:
|
fonts:
|
||||||
main: Montserrat Bold
|
main: Montserrat Bold
|
||||||
|
removeLinuxPackages:
|
||||||
|
- aisleriot
|
||||||
|
- gnome-mahjongg
|
||||||
|
- gnome-mines
|
||||||
|
- gnome-sudoku
|
||||||
|
- rhythmbox
|
||||||
|
removeLinuxShortcuts:
|
||||||
|
- cmake_cmake-gui.desktop
|
||||||
|
- display-im6.q16.desktop
|
||||||
|
- flutter_openurl.desktop
|
||||||
|
- htop.desktop
|
||||||
|
- scvim.desktop
|
||||||
softwareGroups:
|
softwareGroups:
|
||||||
Android: &Android
|
Android: &Android
|
||||||
- scrcpy
|
- scrcpy
|
||||||
|
@ -511,7 +523,8 @@ softwareGroups:
|
||||||
Productivity-Desktop: &Productivity-Desktop
|
Productivity-Desktop: &Productivity-Desktop
|
||||||
- libreoffice
|
- libreoffice
|
||||||
- microsoft-office
|
- microsoft-office
|
||||||
- microsoft-todo
|
# Deprecated in favor of Google Tasks
|
||||||
|
# - microsoft-todo
|
||||||
Python: &Python
|
Python: &Python
|
||||||
- poetry
|
- poetry
|
||||||
- python
|
- python
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
{{- if eq .host.distro.family "linux" -}}
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
{{- $removePackages := splitList " " .removeLinuxPackages }}
|
||||||
|
|
||||||
|
### Remove bloatware packages defined in .chezmoidata.yaml
|
||||||
|
for PKG in {{ $removePackages }}; do
|
||||||
|
if command -v apt-get > /dev/null; then
|
||||||
|
if dpkg -l "$PKG" | grep "$PKG"; then
|
||||||
|
sudo apt-get remove -y "$PKG"
|
||||||
|
fi
|
||||||
|
elif command -v dnf > /dev/null; then
|
||||||
|
if
|
||||||
|
elif command -v yum > /dev/null; then
|
||||||
|
elif command -v pacman > /dev/null; then
|
||||||
|
if pacman -Qs "$PKG" > /dev/null; then
|
||||||
|
sudo pacman -R "$PKG"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
|
@ -0,0 +1,21 @@
|
||||||
|
{{- if eq .host.distro.family "linux" -}}
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
{{ $removeShortcuts := splitList " " .removeLinuxShortcuts }}
|
||||||
|
# shortcuts to remove: {{ $removeShortcuts }}
|
||||||
|
|
||||||
|
### Remove unnecessary desktop shortcuts
|
||||||
|
for DESKTOP_ICON in {{ $removeShortcuts }}; do
|
||||||
|
for SHORTCUT_FOLDER in {{ .host.home }}/.local/share/applications {{ .host.home }}/.local/share/applications/wine/Programs; do
|
||||||
|
if [ -f "$SHORTCUT_FOLDER/$DESKTOP_ICON" ]; then
|
||||||
|
rm -f "$SHORTCUT_FOLDER/$DESKTOP_ICON"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
for SHORTCUT_FOLDER in /usr/share/applications /usr/local/share/applications /var/lib/snapd/desktop/applications; do
|
||||||
|
if [ -f "$SHORTCUT_FOLDER/$DESKTOP_ICON" ]; then
|
||||||
|
sudo rm -f "$SHORTCUT_FOLDER/$DESKTOP_ICON"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
{{- end -}}
|
Loading…
Reference in a new issue