Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .bin/maintenance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ delete_path() {
# ---------------------------------------
# 1. Remove known unnecessary dirs/files
# ---------------------------------------
printf "${CYAN}[1/5] Removing unused files and directories...${RESET}\n"
printf "${CYAN}[1/6] Removing unused files and directories...${RESET}\n"

delete_path "${HOME}/.android" # Android SDK leftovers
delete_path "${HOME}/.cargo" # Rust cache
Expand Down Expand Up @@ -55,7 +55,7 @@ fi
# ------------------------
# 2. Clear cliphist cache
# ------------------------
printf "${CYAN}[2/5] Clearing cliphist cache...${RESET}\n"
printf "${CYAN}[2/6] Clearing cliphist cache...${RESET}\n"
if command -v cliphist &>/dev/null; then
cliphist wipe && printf "${GREEN}cliphist cache wiped${RESET}\n"
else
Expand All @@ -65,22 +65,28 @@ fi
# -------------------------------
# 3. Vacuum systemd journal logs
# -------------------------------
printf "${CYAN}[3/5] Vacuuming journal logs older than 7 days...${RESET}\n"
printf "${CYAN}[3/6] Vacuuming journal logs older than 7 days...${RESET}\n"
sudo journalctl --vacuum-time=7d &&
printf "${GREEN}Journal logs vacuumed${RESET}\n"

# --------------------------
# 4. Clean stale /tmp files
# --------------------------
printf "${CYAN}[4/5] Cleaning stale /tmp files (older than 3 days)...${RESET}\n"
printf "${CYAN}[4/6] Cleaning stale /tmp files (older than 3 days)...${RESET}\n"
sudo find /tmp -mindepth 1 -mtime +3 -print0 | while IFS= read -r -d '' file; do
sudo rm -rf "$file" && printf "${GREEN}Deleted stale tmp:${RESET} %s\n" "$file"
done

# ---------------
# 5. Empty trash
# ---------------
printf "${CYAN}[5/6] Empty gio trash...${RESET}\n"
gio trash --empty

# ----------------------------------
# 5. Run rmlint on selected folders
# 6. Run rmlint on selected folders
# ----------------------------------
printf "${CYAN}[5/5] Running rmlint on select folders...${RESET}\n"
printf "${CYAN}[6/6] Running rmlint on select folders...${RESET}\n"
RMLINT_TARGETS=(
"${HOME}/Documents"
"${HOME}/Videos"
Expand Down
7 changes: 6 additions & 1 deletion .bin/upgrade-system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ paru -Syu

# Clear packages and cache
printf "\e[36mClear orphan packages:\e[0m\n"
sudo pacman -Rs $(pacman -Qtdq)
mapfile -t orphans < <(pacman -Qtdq 2>/dev/null)
if [[ ${#orphans[@]} -gt 0 ]]; then
sudo pacman -Rs "${orphans[@]}"
else
printf "\e[36mNo orphan packages found.\e[0m\n"
fi
printf "\e[36mClear pacman and paru cache:\e[0m\n"
sudo pacman -Scc
paru -Sccd
Expand Down
19 changes: 16 additions & 3 deletions .config/firefox/extensions/auto-tab-discard.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"whitelist": [
"swap.bingx.com",
"bingx.com",
"hd.kinopoisk.ru",
"open.spotify.com",
"github.com",
"www.mexc.com",
Expand All @@ -57,11 +56,25 @@
"www.kucoin.com",
"www.bitget.com",
"hyperskill.org",
"chatgpt.com"
"chatgpt.com",
"app.roll20.net",
"dnd.su",
"chat.deepseek.com",
"coursehunter.net",
"www.codewars.com",
"copilot.microsoft.com",
"ttg.club",
"claude.ai",
"gemini.google.com",
"www.skarnik.by",
"slounik.org",
"5e14.ttg.club",
"kinakipa.site",
"anibel.net"
],
"whitelist-url": []
},
"localStorage": {
"click": "popup"
}
}
}
52 changes: 1 addition & 51 deletions .config/firefox/extensions/improvedtube.json

Large diffs are not rendered by default.

Loading
Loading