diff options
Diffstat (limited to 'config/hypr/initial-boot.sh')
| -rwxr-xr-x | config/hypr/initial-boot.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/config/hypr/initial-boot.sh b/config/hypr/initial-boot.sh index c68560ab..8ccda640 100755 --- a/config/hypr/initial-boot.sh +++ b/config/hypr/initial-boot.sh @@ -17,7 +17,14 @@ gtk_theme="Flat-Remix-GTK-Blue-Dark" icon_theme="Flat-Remix-Blue-Dark" cursor_theme="Bibata-Modern-Ice" -swww="swww img" +if command -v awww >/dev/null 2>&1; then + WWW="awww" + DAEMON="awww-daemon" +else + WWW="swww" + DAEMON="swww-daemon" +fi +swww="$WWW img" effect="--transition-bezier .43,1.19,1,.4 --transition-fps 30 --transition-type grow --transition-pos 0.925,0.977 --transition-duration 2" # Check if a marker file exists. @@ -26,7 +33,7 @@ if [ ! -f "$HOME/.config/hypr/.initial_startup_done" ]; then # Initialize wallust and wallpaper if [ -f "$wallpaper" ]; then wallust run -s $wallpaper > /dev/null - swww query || swww-daemon && $swww $wallpaper $effect + $WWW query || $DAEMON && $swww $wallpaper $effect "$scriptsDir/WallustSwww.sh" > /dev/null 2>&1 & fi |
