farewell swaybg
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user