Browse Source

updated Keybinds.conf and Wallpaper.sh

pull/45/head
JaKooLit 2 years ago
parent
commit
00faa20da0
  1. 2
      config/hypr/configs/Keybinds.conf
  2. 11
      config/hypr/scripts/Wallpaper.sh

2
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

11
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

Loading…
Cancel
Save