From aa4db8e587ce1bdf5b005dab4f19bcb1c3b4bd68 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 13 Jan 2019 14:57:16 -0500 Subject: [PATCH] setbg takes arg --- .scripts/tools/setbg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.scripts/tools/setbg b/.scripts/tools/setbg index 6ffd21d..00e996a 100755 --- a/.scripts/tools/setbg +++ b/.scripts/tools/setbg @@ -1,3 +1,4 @@ #!/bin/sh -# Sets the background. Many scripts need to do this, but I've put it here so you can easily change all their actions. +# Sets the background. If given an argument, will set file as background. +[ ! -z "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed." xwallpaper --center ~/.config/wall.png