summaryrefslogtreecommitdiff
path: root/dotfiles/common
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/common')
-rw-r--r--dotfiles/common/.config/dunst/dunstrc2
-rwxr-xr-xdotfiles/common/.local/bin/cron/log-cleanup13
2 files changed, 15 insertions, 0 deletions
diff --git a/dotfiles/common/.config/dunst/dunstrc b/dotfiles/common/.config/dunst/dunstrc
index 6f8a3ec..bcfa533 100644
--- a/dotfiles/common/.config/dunst/dunstrc
+++ b/dotfiles/common/.config/dunst/dunstrc
@@ -40,6 +40,8 @@ icon_position = left
min_icon_size = 54
max_icon_size = 80
icon_corner_radius = 4
+icon_theme = "Papirus-Dark"
+enable_recursive_icon_lookup = true
# Misc/Advanced
dmenu = fuzzel --dmenu --prompt 'Open with'
diff --git a/dotfiles/common/.local/bin/cron/log-cleanup b/dotfiles/common/.local/bin/cron/log-cleanup
new file mode 100755
index 0000000..651982c
--- /dev/null
+++ b/dotfiles/common/.local/bin/cron/log-cleanup
@@ -0,0 +1,13 @@
+#!/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