diff --git a/.memo/niri-ricing.txt b/.memo/niri-ricing.txt index a8c138c..7a833a4 100644 --- a/.memo/niri-ricing.txt +++ b/.memo/niri-ricing.txt @@ -3,6 +3,5 @@ things I have installed: everything in `./hyprland-ricing.txt`, in addition to: swayidle # hypridle shows a warning on Niri, so better to use another one -swaybg # background of overview (blurred) -swww # background of workspaces +swww xwayland-satellite diff --git a/.scripts/change-wallpaper b/.scripts/change-wallpaper index 919bfe6..63e2870 100755 --- a/.scripts/change-wallpaper +++ b/.scripts/change-wallpaper @@ -62,12 +62,13 @@ elif [ "$XDG_CURRENT_DESKTOP" = "niri" ]; then exit 1 ) - nohup swaybg -i "$blurred_image" -m fill > /dev/null 2> /dev/null & + # nohup swaybg -i "$blurred_image" -m fill > /dev/null 2> /dev/null & + swww img -n backdrop "$blurred_image" --transition-type fade --transition-duration 2 > /dev/null 2> /dev/null notify-send "Blurred Wallpaper set" "Selected wallpaper has been successfully applied for overview" ) & - swww img "$image_copied" --transition-type fade --transition-duration 2 > /dev/null 2> /dev/null + swww img -n background "$image_copied" --transition-type fade --transition-duration 2 > /dev/null 2> /dev/null notify-send "Wallpaper Changed" "$image" else diff --git a/.scripts/niri-autoblur b/.scripts/niri-autoblur index 53a4fc7..cf46d44 100755 --- a/.scripts/niri-autoblur +++ b/.scripts/niri-autoblur @@ -1,5 +1,10 @@ #!/usr/bin/env bash +normal="" +blurred="" +last="" +target="" + function update() { normal=$(find ~/.local/share/wallpaper/current -type f | head -n 1) blurred=$(find ~/.local/share/wallpaper/blurred -type f | head -n 1) @@ -8,7 +13,7 @@ function update() { } function apply() { - swww img "$1" --transition-type fade --transition-duration 0.5 > /dev/null 2> /dev/null + swww img -n background "$1" --transition-type fade --transition-duration 0.5 > /dev/null 2> /dev/null } function isdesktop() { diff --git a/niri/config.kdl b/niri/config.kdl index b654b32..6736d2a 100644 --- a/niri/config.kdl +++ b/niri/config.kdl @@ -109,7 +109,7 @@ animations { } layer-rule { - match namespace="^wallpaper$" + match namespace="^swww-daemonbackdrop$" place-within-backdrop true } @@ -122,8 +122,8 @@ spawn-sh-at-startup "config-switch niri" spawn-at-startup "waybar" // Wallpaper -spawn-sh-at-startup "swaybg -i $(find $HOME/.local/wallpaper/blurred -type f) -m fill" -spawn-at-startup "swww-daemon" +spawn-sh-at-startup "swww-daemon -n background" +spawn-sh-at-startup "swww-daemon -n backdrop" spawn-at-startup "niri-autoblur" // Not necessary maybe ... diff --git a/niri/config.kdl.template b/niri/config.kdl.template index c59236f..b836984 100644 --- a/niri/config.kdl.template +++ b/niri/config.kdl.template @@ -109,7 +109,7 @@ animations { } layer-rule { - match namespace="^wallpaper$" + match namespace="^swww-daemonbackdrop$" place-within-backdrop true } @@ -122,8 +122,8 @@ spawn-sh-at-startup "config-switch niri" spawn-at-startup "waybar" // Wallpaper -spawn-sh-at-startup "swaybg -i $(find $HOME/.local/wallpaper/blurred -type f) -m fill" -spawn-at-startup "swww-daemon" +spawn-sh-at-startup "swww-daemon -n background" +spawn-sh-at-startup "swww-daemon -n backdrop" spawn-at-startup "niri-autoblur" // Not necessary maybe ...