From 2d927892e5354abb14b9738d895b7084452886e2 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 20 Mar 2025 22:06:47 +0900 Subject: updated startup apps.conf and WallpaperSelect.sh as it seems that it is also uncommented the lower part exec-once - swww --- config/hypr/UserScripts/WallpaperSelect.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'config/hypr/UserScripts') diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh index 34e44353..b5943586 100755 --- a/config/hypr/UserScripts/WallpaperSelect.sh +++ b/config/hypr/UserScripts/WallpaperSelect.sh @@ -139,7 +139,7 @@ modify_startup_config() { # Check if it's a live wallpaper (video) if [[ "$selected_file" =~ \.(mp4|mkv|mov|webm)$ ]]; then # For video wallpapers: - sed -i '/^\s*exec-once\s*=\s*swww-daemon\s*--format\s*xrgb.*$/s/^/\#/' "$startup_config" + sed -i '/^\s*exec-once\s*=\s*swww-daemon\s*--format\s*xrgb\s*$/s/^/\#/' "$startup_config" sed -i '/^\s*#\s*exec-once\s*=\s*mpvpaper\s*.*$/s/^#\s*//;' "$startup_config" # Update the livewallpaper variable with the selected video path (using $HOME) @@ -149,7 +149,8 @@ modify_startup_config() { echo "Configured for live wallpaper (video)." else # For image wallpapers: - sed -i '/^\s*#\s*exec-once\s*=\s*swww-daemon\s*--format\s*xrgb.*$/s/^#\s*//;' "$startup_config" + sed -i '/^\s*#\s*exec-once\s*=\s*swww-daemon\s*--format\s*xrgb\s*$/s/^\s*#\s*//;' "$startup_config" + sed -i '/^\s*exec-once\s*=\s*mpvpaper\s*.*$/s/^/\#/' "$startup_config" echo "Configured for static wallpaper (image)." -- cgit v1.2.3