summaryrefslogtreecommitdiffstats
path: root/.local/bin/setbg
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-05-31 19:38:43 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-05-31 19:38:43 -0400
commit6b334b59fc9f681fd16fe437c363213bba80f640 (patch)
treeb0321c4b54d9b34d999c164ec5fb7ac81bc71ea0 /.local/bin/setbg
parentae327871d27157d29dffe25ef4aa0502e54bf4e1 (diff)
downloadeibhear-6b334b59fc9f681fd16fe437c363213bba80f640.tar.gz
eibhear-6b334b59fc9f681fd16fe437c363213bba80f640.tar.zst
eibhear-6b334b59fc9f681fd16fe437c363213bba80f640.zip
script documentation
Diffstat (limited to '.local/bin/setbg')
-rwxr-xr-x.local/bin/setbg7
1 files changed, 6 insertions, 1 deletions
diff --git a/.local/bin/setbg b/.local/bin/setbg
index 950ae7c..6125654 100755
--- a/.local/bin/setbg
+++ b/.local/bin/setbg
@@ -1,4 +1,9 @@
#!/bin/sh
-# Sets the background. If given an argument, will set file as background.
+
+# In LARBS, ~/.config/wall.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
+# if you don't want a blakc screen.
+
[ ! -z "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed."
xwallpaper --zoom ~/.config/wall.png