Initial commit
This commit is contained in:
commit
209ba130c0
4852 changed files with 1517959 additions and 0 deletions
28
.config/hypr/scripts/wallpaper-automation.sh
Executable file
28
.config/hypr/scripts/wallpaper-automation.sh
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
# _ _ __ ______
|
||||
# / \ _ _| |_ ___ \ \ / / _ \
|
||||
# / _ \| | | | __/ _ \ \ \ /\ / /| |_) |
|
||||
# / ___ \ |_| | || (_) | \ V V / | __/
|
||||
# /_/ \_\__,_|\__\___/ \_/\_/ |_|
|
||||
#
|
||||
|
||||
sec=$(cat ~/.config/ml4w/settings/wallpaper-automation.sh)
|
||||
_setWallpaperRandomly() {
|
||||
waypaper --random
|
||||
echo ":: Next wallpaper in 60 seconds..."
|
||||
sleep $sec
|
||||
_setWallpaperRandomly
|
||||
}
|
||||
|
||||
if [ ! -f ~/.config/ml4w/cache/wallpaper-automation ]; then
|
||||
touch ~/.config/ml4w/cache/wallpaper-automation
|
||||
echo ":: Start wallpaper automation script"
|
||||
notify-send "Wallpaper automation process started" "Wallpaper will be changed every $sec seconds."
|
||||
_setWallpaperRandomly
|
||||
else
|
||||
rm ~/.config/ml4w/cache/wallpaper-automation
|
||||
notify-send "Wallpaper automation process stopped."
|
||||
echo ":: Wallpaper automation script process $wp stopped"
|
||||
wp=$(pgrep -f wallpaper-automation.sh)
|
||||
kill -KILL $wp
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue