dots/.script/wallpaper.sh

5 lines
249 B
Bash
Executable File

#!/usr/bin/env sh
# Sets the background. If given an argument, will set file as background.
[ ! -z "$1" ] && cp "$1" ~/.config/wallpaper && notify-send -i "$HOME/.config/wallpaper" "Wallpaper changed."
xwallpaper --daemon --zoom ~/.config/wallpaper