aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts/WallpaperSelect.sh
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com>2025-03-20 22:06:47 +0900
committerJaKooLit <ejhay.games@gmail.com>2025-03-20 22:06:47 +0900
commit2d927892e5354abb14b9738d895b7084452886e2 (patch)
tree22f2ac8c3533107f78fc40cee0909acfea81f07a /config/hypr/UserScripts/WallpaperSelect.sh
parent29f66a83d793126bc15a6be6b502cb533784e332 (diff)
updated startup apps.conf and WallpaperSelect.sh as it seems that it is also uncommented the lower part exec-once - swww
Diffstat (limited to 'config/hypr/UserScripts/WallpaperSelect.sh')
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperSelect.sh5
1 files changed, 3 insertions, 2 deletions
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)."
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage