Update setbg

This commit is contained in:
Vlad Doster 2020-03-27 10:13:21 -05:00 committed by GitHub
parent d9f7386380
commit ed8ddf0420
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,9 @@
#!/bin/sh
# In LARBS, ~/.config/wall.png is the location of the system wallpaper. This
# ~/.config/assets/wallpaper.png is the location of the system wallpaper. This
# script, if given an argument, moves it there. This script without an
# argument sets ~/.config/wall.png as the wallpaper, which is required on login
# argument sets ~/.config/assets/wallpaper.png as the wallpaper, which is required on login
# if you don't want a black screen.
#
# You may also give a directory name to select a random image from that
# directory as a wallpaper. Be careful that the directory only has images.
[ ! -z "$1" ] && cp "$1" ~/.config/assets/wallpaper.png && notify-send -i "$HOME/.config/assets/wallpaper.png" "Wallpaper changed."
xwallpaper --focus ~/.config/assets/wallpaper.png