sway: use swww for wallpapers

its awesome
This commit is contained in:
2022-09-27 18:35:04 +03:00
parent f359ffe0ce
commit 55f8664122
2 changed files with 20 additions and 1 deletions

18
bin/wall.sh Executable file
View File

@@ -0,0 +1,18 @@
#! /bin/bash
__set_image() {
swww img "$1" --transition-fps 60
}
if [[ "$1" == "--restore" ]]; then
image=$(cat ~/.config/.wallpaper)
__set_image "$image"
exit
fi
image="$1"
__set_image "$image"
full_path="$PWD/$image"
echo "$full_path" >~/.config/.wallpaper