yes
This commit is contained in:
18
scripts/select-wallpaper.sh
Normal file → Executable file
18
scripts/select-wallpaper.sh
Normal file → Executable file
@@ -6,7 +6,7 @@ if [ ${#WALLPAPER} -gt 0 ] ; then
|
||||
|
||||
rm -f $HOME/.cache/.wallpaper
|
||||
|
||||
echo "$HOME/Pictures/Wallpapers/$WALLPAPER" >> $HOME/.cache/.wallpaper
|
||||
echo "$HOME/Pictures/Wallpapers/$WALLPAPER" > $HOME/.cache/.wallpaper
|
||||
|
||||
rm -rf $HOME/.cache/wal
|
||||
|
||||
@@ -14,7 +14,21 @@ if [ ${#WALLPAPER} -gt 0 ] ; then
|
||||
|
||||
# wal -stn -a 90 -i $HOME/wallpaper/$WALLPAPER
|
||||
|
||||
swww img $HOME/Pictures/Wallpapers/$WALLPAPER --transition-fps 300 --transition-duration 2 --transition-type simple --transition-step 3 &
|
||||
if [[ "$(hostname)" != "gentoo" ]]; then
|
||||
swww img $HOME/Pictures/Wallpapers/$WALLPAPER --transition-fps 300 --transition-duration 2 --transition-type simple --transition-step 3 &
|
||||
fi
|
||||
|
||||
if [[ "$(hostname)" == "gentoo" ]]; then
|
||||
HYPRPAPER_PID="$(pidof hyprpaper)"
|
||||
if [ ${#HYPRPAPER_PID} -lt 1 ]; then
|
||||
hyprctl dispatch exec hyprpaper
|
||||
sleep 1
|
||||
fi
|
||||
hyprctl hyprpaper unload all
|
||||
hyprctl hyprpaper preload $HOME/Pictures/Wallpapers/$WALLPAPER
|
||||
hyprctl hyprpaper wallpaper ,$HOME/Pictures/Wallpapers/$WALLPAPER
|
||||
fi
|
||||
|
||||
# bash ~/dotfiles/scripts/hot-reload.sh
|
||||
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user