feat: swww wallpaper changer

This commit is contained in:
hesam-init 2024-02-14 20:43:50 +03:30
parent f45d9b9fe5
commit 5590011d75
5 changed files with 18 additions and 5 deletions

View file

@ -54,6 +54,7 @@ The following packages are required for the proper functioning of Hyprland on Vo
- waybar
- swaybg
- animated bg [swww](https://github.com/LGFae/swww)
- swaylock or [swaylock-effects](https://github.com/mortie/swaylock-effects)
- grim
- slurp

View file

@ -11,8 +11,8 @@ exec-once = sleep 1 && /usr/bin/pipewire-pulse &
# exec-once = sleep 1 && /usr/bin/wireplumber &
# wallpaper :
exec-once = swaybg -i ~/Wallpapers/macos.png &
# exec-once = swww init; swww kill; swww init # idk why tbh
# exec-once = swaybg -i ~/Wallpapers/macos.png &
exec-once = ~/.config/hypr/scripts/swww-launch.sh
# status bar :
exec-once = ~/.config/hypr/scripts/waybar-launch.sh

View file

@ -12,8 +12,8 @@ decoration {
passes = 3
new_optimizations = on
ignore_opacity = true
# xray = true
# blurls = waybar
# xray = true
# blurls = dunst
}
@ -22,7 +22,7 @@ decoration {
fullscreen_opacity = 1.0
drop_shadow = true
shadow_range = 30
shadow_render_power = 3
shadow_range = 15
shadow_render_power = 5
col.shadow = 0x66000000
}

View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
FPS=75
DIR=$HOME/wallpapers/
PICS=($(ls ${DIR}))
RANDOMPICS=${PICS[$RANDOM % ${#PICS[@]}]}
swww query || swww init
swww img ${DIR}/${RANDOMPICS} --transition-fps $FPS --transition-type any --transition-duration 3

View file

@ -10,6 +10,7 @@
window#waybar {
background-color: transparent;
border-radius: 12px;
}
window#waybar.hidden {