From 7d9345c9564370bdb32cbb06d24b238986572ea6 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 19 Aug 2021 12:42:52 +0200 Subject: Added battery-low-notify script and crontab to run it every 10min --- crontab/laptop.crontab | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 crontab/laptop.crontab (limited to 'crontab') diff --git a/crontab/laptop.crontab b/crontab/laptop.crontab new file mode 100644 index 0000000..18f36f1 --- /dev/null +++ b/crontab/laptop.crontab @@ -0,0 +1,3 @@ +*/10 * * * * . $HOME/.zprofile ; DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u $USER)/bus" DISPLAY=:0 battery-low-notify + +# vim:ft=crontab -- cgit From e49f51533e191ba5dbde33f88f74001c2a0fa2fe Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 26 Aug 2021 01:36:20 +0200 Subject: Added crontab to remove unrequired packages --- crontab/root.crontab | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crontab') diff --git a/crontab/root.crontab b/crontab/root.crontab index 48cb3ab..dbe87f6 100644 --- a/crontab/root.crontab +++ b/crontab/root.crontab @@ -1,5 +1,6 @@ # Meant to be installed as root -0 12 */2 * * pacman --noconfirm -Syu >> /var/log/pacman_update.log +0 12 */2 * * pacman --noconfirm -Syu +20 12 */2 * * pacman -Qdt | xargs pacman --noconfirm -Rns # vim:ft=crontab -- cgit