#!/bin/sh # Deletes log files older than 7 days from ~/.local/var/log # Services (hyprland, waybar, dunst, hypridle, gammastep) create a new # timestamped log file per session. Without cleanup these accumulate. # # Intended to run daily via crontab. LOG_DIR="$HOME/.local/var/log" if [ -d "$LOG_DIR" ]; then find "$LOG_DIR" -name "*.log" -mtime +7 -delete fi