aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com>2025-01-13 10:38:49 +0900
committerJaKooLit <ejhay.games@gmail.com>2025-01-13 10:38:49 +0900
commita34e572d324dd90601c85aa064f3fa96c3e45007 (patch)
tree5c55d307f2a21ebf1dc24647d014f293330650e8 /config
parent8c430cb1c39b08bc63f6ce831a92d76c3a8ec211 (diff)
I think this is the ultimate solution to the wallust colors not applying after wallpaper change./. ha ha
Diffstat (limited to 'config')
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperEffects.sh10
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperRandom.sh11
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperSelect.sh7
3 files changed, 15 insertions, 13 deletions
diff --git a/config/hypr/UserScripts/WallpaperEffects.sh b/config/hypr/UserScripts/WallpaperEffects.sh
index 9a9d289c..f1984dab 100755
--- a/config/hypr/UserScripts/WallpaperEffects.sh
+++ b/config/hypr/UserScripts/WallpaperEffects.sh
@@ -1,7 +1,6 @@
#!/bin/bash
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Wallpaper Effects using ImageMagick (SUPER SHIFT W)
-# Inspiration from ML4W - Stephan Raabe https://github.com/mylinuxforwork/dotfiles
# Variables
current_wallpaper="$HOME/.config/hypr/wallpaper_effects/.wallpaper_current"
@@ -40,15 +39,16 @@ declare -A effects=(
# Function to apply no effects
no-effects() {
- swww img -o "$focused_monitor" "$current_wallpaper" $SWWW_PARAMS &
+ swww img -o "$focused_monitor" "$current_wallpaper" $SWWW_PARAMS &&
# Wait for swww command to complete
wait $!
# Run other commands after swww
- wallust run "$current_wallpaper" -s &
- # Wait to complete
+ wallust run "$current_wallpaper" -s &&
wait $!
# Refresh rofi, waybar, wallust palettes
- "${SCRIPTSDIR}/Refresh.sh"
+ sleep 2
+ "$SCRIPTSDIR/Refresh.sh"
+
notify-send -u low -i "$iDIR/bell.png" "No wallpaper effects"
# copying wallpaper for rofi menu
cp "$current_wallpaper" "$wallpaper_output"
diff --git a/config/hypr/UserScripts/WallpaperRandom.sh b/config/hypr/UserScripts/WallpaperRandom.sh
index 6e8f5ff6..3c8c7520 100755
--- a/config/hypr/UserScripts/WallpaperRandom.sh
+++ b/config/hypr/UserScripts/WallpaperRandom.sh
@@ -3,7 +3,7 @@
# Script for Random Wallpaper ( CTRL ALT W)
wallDIR="$HOME/Pictures/wallpapers"
-scriptsDir="$HOME/.config/hypr/scripts"
+SCRIPTSDIR="$HOME/.config/hypr/scripts"
focused_monitor=$(hyprctl monitors | awk '/^Monitor/{name=$2} /focused: yes/{print name}')
@@ -21,9 +21,10 @@ SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration
swww query || swww-daemon --format xrgb && swww img -o $focused_monitor ${RANDOMPICS} $SWWW_PARAMS
-sleep 1.5
-${scriptsDir}/WallustSwww.sh
+wait $!
+"$SCRIPTSDIR/WallustSwww.sh" &&
-sleep 0.5
-${scriptsDir}/Refresh.sh
+wait $!
+sleep 2
+"$SCRIPTSDIR/Refresh.sh"
diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh
index 8daa4f28..6aa60804 100755
--- a/config/hypr/UserScripts/WallpaperSelect.sh
+++ b/config/hypr/UserScripts/WallpaperSelect.sh
@@ -101,9 +101,10 @@ fi
main
-sleep 1.5
-"$SCRIPTSDIR/WallustSwww.sh"
+wait $!
+"$SCRIPTSDIR/WallustSwww.sh" &&
-sleep 0.5
+wait $!
+sleep 2
"$SCRIPTSDIR/Refresh.sh"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage