This repository has been archived on 2024-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-nix/apps/wallpaper/startup.sh

17 lines
355 B
Bash
Raw Normal View History

2024-03-24 16:15:15 +01:00
#!/usr/bin/env zsh
# check if swaybg is already running
pkill swaybg
# config
wallpaper=(~/Pictures/wallpaper.jpg)
wallpaper_url='https://wallscloud.net/img/resize/3840/2160/MM/2022-03-30-blurred.jpg'
# download the wallpaper
if [ ! -f ${wallpaper} ]; then
wget -q -O ${wallpaper} ${wallpaper_url}
fi
# start swaybg
swaybg -m fill -i ${wallpaper} &