aboutsummaryrefslogtreecommitdiff
path: root/rice.sh
diff options
context:
space:
mode:
authorawy <awy@awy.one>2024-11-29 01:20:06 +0300
committerawy <awy@awy.one>2024-11-29 01:20:06 +0300
commit1b95d0b8cb9f916ad255e1360e2bc6e60664d567 (patch)
tree93d838f54ff354c35a72e989b5c9149ae9ef69b5 /rice.sh
parent22222745f467d52bd4406f78e3dc7c99b7dcf847 (diff)
cronjob
Diffstat (limited to 'rice.sh')
-rwxr-xr-xrice.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/rice.sh b/rice.sh
index 92ecbd2..21f92bf 100755
--- a/rice.sh
+++ b/rice.sh
@@ -92,4 +92,16 @@ rm -rf go
dinitctl enable cronie
echo "*/10 * * * * /home/$PERMUSER/.local/bin/cron/newsup\n*/30 * * * * /home/$PERMUSER/.local/bin/cron/checkup" | doas -u $PERMUSER crontab -
+cat <<EOL >> /usr/share/libalpm/hooks/statusbar.hook
+[Trigger]
+Operation = Upgrade
+Type = Package
+Target = *
+
+[Action]
+Description = Updating statusbar...
+When = PostTransaction
+Exec = /usr/bin/pkill -RTMIN+8 i3blocks
+EOL
+
echo "Your linux is riced!"