summaryrefslogtreecommitdiffstats
path: root/.local/bin/setbg
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/setbg')
-rwxr-xr-x.local/bin/setbg4
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/bin/setbg b/.local/bin/setbg
new file mode 100755
index 0000000..950ae7c
--- /dev/null
+++ b/.local/bin/setbg
@@ -0,0 +1,4 @@
+#!/bin/sh
+# 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 --zoom ~/.config/wall.png