summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-01-13 14:57:16 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-01-13 14:57:16 -0500
commitaa4db8e587ce1bdf5b005dab4f19bcb1c3b4bd68 (patch)
tree67b4ba0e36f78298175f03203a5e61f2f21cd776
parent55a37ce79e83c3451439a09261ee49cc773a997d (diff)
downloadeibhear-aa4db8e587ce1bdf5b005dab4f19bcb1c3b4bd68.tar.gz
eibhear-aa4db8e587ce1bdf5b005dab4f19bcb1c3b4bd68.tar.zst
eibhear-aa4db8e587ce1bdf5b005dab4f19bcb1c3b4bd68.zip
setbg takes arg
-rwxr-xr-x.scripts/tools/setbg3
1 files changed, 2 insertions, 1 deletions
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