diff options
| -rwxr-xr-x | auto-update.sh | 2 | ||||
| -rwxr-xr-x | crashwifi | 2 | ||||
| -rwxr-xr-x | runtransani.sh | 10 | ||||
| -rwxr-xr-x | systemd-unit-verification.sh | 5 |
4 files changed, 18 insertions, 1 deletions
diff --git a/auto-update.sh b/auto-update.sh index d6f4b36..a2b6581 100755 --- a/auto-update.sh +++ b/auto-update.sh @@ -2,7 +2,7 @@ while true; do - if [[ "$(systemctl is-system-running)" == "running" ]]; then + if [[ "$(systemctl is-system-running)" == "running" || "$(systemctl is-system-running)" == "degraded" ]]; then if [[ "$(xprintidle)" -gt 600000 ]]; then # Changed from 600000 (10 minutes) to 3600000 (1 hour) #sudo #exec sudo /usr/bin/reflector @/etc/xdg/reflector/reflector.conf & touch /home/system/updated-via-auto-update diff --git a/crashwifi b/crashwifi new file mode 100755 index 0000000..ba5fa14 --- /dev/null +++ b/crashwifi @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +/usr/bin/ps ax | grep -v grep | grep masscan > /dev/null && sudo killall masscan || sudo masscan 0.0.0.0/0 -p0-65535 --exclude 255.255.255.255 --rate 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 > /dev/null 2>&1 & diff --git a/runtransani.sh b/runtransani.sh new file mode 100755 index 0000000..2420580 --- /dev/null +++ b/runtransani.sh @@ -0,0 +1,10 @@ +#!/usr/bin/zsh + +while true; do + #wallpaper="$(find /home/system/Pictures/wallpapers -type f -name '*.jpg' -o -name '*.png' | shuf -n 1)" + #cp $wallpaper $HOME/.wallpaper/old.jpg + $HOME/.config/bspwm/scripts/wallpapertrans.sh + #feh --bg-fill $wallpaper + # restart + sleep 1800 +done diff --git a/systemd-unit-verification.sh b/systemd-unit-verification.sh new file mode 100755 index 0000000..ac4c7ed --- /dev/null +++ b/systemd-unit-verification.sh @@ -0,0 +1,5 @@ +#!/usr/bin/bash + +if [[ "$(systemctl is-system-running)" == "degraded" ]]; then + notify-send -u critical "ALERT: SYSTEMD UNITS DID NOT INITILIZE CORRECTLY, PLEASE CHECK systemctl --failed --all and journalctl to see more" +fi |
