This commit is contained in:
Stephan Raabe 2024-03-28 12:23:11 +01:00
parent f4dd412733
commit 04ac911a5f
11 changed files with 57 additions and 14 deletions

View File

@ -1,5 +1,6 @@
packagesPacman=(
"hyprland"
"hyprpaper"
"xdg-desktop-portal-hyprland"
"waybar"
"grim"

View File

@ -0,0 +1 @@
swww

View File

@ -1 +1 @@
2.8.3.4
2.8.4

View File

@ -1 +1 @@
2834
2840

View File

@ -1,3 +1,9 @@
Version 2.8.4
https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.8.4
--------------------------------------------------------
- In the ML4W Dotfiles Settings App you can now switch between the wallpaper applications swww or hyprpaper. In case of issues with the default application swww you can select hyprpaper. The wallpaper application can also be disabled but background images for wlogout, hyprlock and rofi will be generated with the selected wallpaper.
PLEASE NOTE: Logout & Login is required after a change.
Version 2.8.3.4
https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.8.3.4
--------------------------------------------------------

View File

@ -1,4 +1,4 @@
# ML4W Dotfiles 2.8.3.4
# ML4W Dotfiles 2.8.4
An advanced configuration of Hyprland and Qtile for Arch Linux based distributions. This package includes an installation script to install and setup the required components.

View File

@ -26,11 +26,8 @@ exec-once = hypridle
# Load cliphist history
exec-once = wl-paste --watch cliphist store
# Initialize swww
exec-once = swww init || swww-daemon --format xrgb
# Load last wallpaper and waybar with pywal colors
exec-once = ~/dotfiles/hypr/scripts/wallpaper.sh init
# Initialize Wallpaper Engine
exec-once = ~/dotfiles/hypr/scripts/init-wallpaper-engine.sh
# Start ML4W Welcome App
exec-once = ~/dotfiles/hypr/scripts/ml4w-welcome-autostart.sh

2
hypr/hyprpaper.conf Normal file
View File

@ -0,0 +1,2 @@
preload = ~/wallpaper/hyprland.jpg
wallpaper = ,~/wallpaper/hyprland.jpg

View File

@ -0,0 +1,20 @@
#!/bin/bash
wallpaper_engine=$(cat $HOME/dotfiles/.settings/wallpaper-engine.sh)
if [ "$wallpaper_engine" == "swww" ] ;then
# swww
echo ":: Using swww"
swww init
swww-daemon --format xrgb
sleep 0.5
~/dotfiles/hypr/scripts/wallpaper.sh init
elif [ "$wallpaper_engine" == "hyprpaper" ] ;then
# hyprpaper
echo ":: Using hyprpaper"
# hyprpaper
sleep 0.5
~/dotfiles/hypr/scripts/wallpaper.sh init
else
echo ":: Wallpaper Engine disabled"
~/dotfiles/hypr/scripts/wallpaper.sh init
fi

View File

@ -88,12 +88,28 @@ transition_type="wipe"
# transition_type="outer"
# transition_type="random"
wallpaper_engine=$(cat $HOME/dotfiles/.settings/wallpaper-engine.sh)
if [ "$wallpaper_engine" == "swww" ] ;then
# swww
echo ":: Using swww"
swww img $wallpaper \
--transition-bezier .43,1.19,1,.4 \
--transition-fps=60 \
--transition-type=$transition_type \
--transition-duration=0.7 \
--transition-pos "$( hyprctl cursorpos )"
elif [ "$wallpaper_engine" == "hyprpaper" ] ;then
# hyprpaper
echo ":: Using hyprpaper"
killall hyprpaper
echo -n "" > $HOME/dotfiles/hypr/hyprpaper.conf
echo "preload = $wallpaper" >> $HOME/dotfiles/hypr/hyprpaper.conf
echo "wallpaper = ,$wallpaper" >> $HOME/dotfiles/hypr/hyprpaper.conf
echo "splash = false" >> $HOME/dotfiles/hypr/hyprpaper.conf
hyprpaper &
else
echo ":: Wallpaper Engine disabled"
fi
if [ "$1" == "init" ] ;then
echo ":: Init"