diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index 26a32f5..baec511 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -38,7 +38,7 @@ bind = $mainMod, E, exec, $scriptsDir/QuickEdit.sh bind = $mainMod, B, exec, killall -SIGUSR1 waybar # Toggle hide/show waybar bind = $mainMod SHIFT, G, exec, $scriptsDir/GameMode.sh bind = CTRL SHIFT, W, exec, $scriptsDir/Refresh.sh -bind = CTRL ALT, W, exec, $scriptsDir/Wallpaper.sh swww +bind = CTRL ALT, W, exec, $scriptsDir/Wallpaper.sh bind = CTRL, W, exec, $scriptsDir/WaybarStyles.sh bind = $mainMod, W, exec, $scriptsDir/WallpaperSelect.sh bind = ALT, W, exec, $scriptsDir/WaybarLayout.sh diff --git a/config/hypr/scripts/Wallpaper.sh b/config/hypr/scripts/Wallpaper.sh index 8fdfcbb..c494dca 100755 --- a/config/hypr/scripts/Wallpaper.sh +++ b/config/hypr/scripts/Wallpaper.sh @@ -6,11 +6,18 @@ SCRIPTSDIR="$HOME/.config/hypr/scripts" PICS=($(find ${DIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \))) RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]} -swww query || swww init -swww img ${RANDOMPICS} --transition-fps 30 --transition-type any --transition-duration 3 +# Transition config +FPS=30 +TYPE="any" +DURATION=3 +SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION" + + +swww query || swww init && swww img ${RANDOMPICS} $SWWW_PARAMS ${SCRIPTSDIR}/PywalSwww.sh & sleep 1 ${SCRIPTSDIR}/Refresh.sh +