Rewrite for Debian only

This commit is contained in:
2025-04-06 17:27:10 +01:00
parent c0b620f606
commit 4e864a0141
8 changed files with 44 additions and 186 deletions

View File

@@ -18,9 +18,6 @@ ENDCOLOR="\e[0m"
pcheck() {
local pms=()
if command -v flatpak >/dev/null 2>&1; then
pms+=("flatpak")
fi
if command -v nix >/dev/null 2>&1; then
pms+=("nix")
fi
@@ -37,6 +34,9 @@ pcheck() {
elif command -v dnf >/dev/null 2>&1; then
pms+=("dnf")
fi
if command -v flatpak >/dev/null 2>&1; then
pms+=("flatpak")
fi
echo "${pms[@]}"
}

4
scripts/temp Executable file
View File

@@ -0,0 +1,4 @@
#! /bin/bash
paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp) | column -s $'\t' -t | sed 's/\(.\)..$/.\1°C/'

18
scripts/update Executable file
View File

@@ -0,0 +1,18 @@
#! /bin/bash
YELLOW="\e[33m"
ENDCOLOR="\e[0m"
printf "%b\n" "${YELLOW}Updating apt...${ENDCOLOR}"
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt autoremove
sudo apt autoclean
if command -v flatpak >/dev/null 2>&1; then
printf "%b\n" "${YELLOW}Updating flatpak...${ENDCOLOR}"
flatpak update
flatpak uninstall --unused --delete-data
fi