14 lines
310 B
Bash
Executable file
14 lines
310 B
Bash
Executable file
#!/bin/sh
|
|
# < x37 > | https://x.exozy.me
|
|
# script to start swww and change a wallpaper automatically with dinit
|
|
|
|
swww query
|
|
if [ $? -eq 1 ] ; then
|
|
swww init
|
|
else
|
|
killall swww-daemon
|
|
swww init --no-daemon
|
|
fi
|
|
sleep 2
|
|
/usr/bin/swww img $HOME/Pictures/Wallpapers/$(ls $HOME/Pictures/Wallpapers | shuf -n1)
|