changed to setup script to /etc/skel

This commit is contained in:
[yuri]
2025-12-11 17:25:19 +01:00
parent d47bcdcc7d
commit e4215430ef
542 changed files with 128 additions and 878 deletions

View File

@@ -0,0 +1,30 @@
#!/usr/bin/env bash
# _ _ __ ______
# / \ _ _| |_ ___ \ \ / / _ \
# / _ \| | | | __/ _ \ \ \ /\ / /| |_) |
# / ___ \ |_| | || (_) | \ V V / | __/
# /_/ \_\__,_|\__\___/ \_/\_/ |_|
#
ml4w_cache_folder="$HOME/.cache/ml4w/hyprland-dotfiles"
sec=$(cat ~/.config/ml4w/settings/wallpaper-automation.sh)
_setWallpaperRandomly() {
waypaper --random
echo ":: Next wallpaper in 60 seconds..."
sleep $sec
_setWallpaperRandomly
}
if [ ! -f $ml4w_cache_folder/wallpaper-automation ]; then
touch $ml4w_cache_folder/wallpaper-automation
echo ":: Start wallpaper automation script"
notify-send "Wallpaper automation process started" "Wallpaper will be changed every $sec seconds."
_setWallpaperRandomly
else
rm $ml4w_cache_folder/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