nix/scripts/bin/setbg
2023-09-05 15:15:43 -05:00

9 lines
181 B
Bash
Executable file

#!/usr/bin/env bash
index="${2}"
wp_file="${HOME}/.wallpaper${index}"
rm -f "${wp_file}"
echo "Setting ${1} as ${wp_file}"
ln -s "$(realpath "${1}")" "${wp_file}"
"${HOME}/.fehbg"