summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTslil Clingman <hiato1@gmail.com>2015-08-18 23:40:24 +0200
committerTslil Clingman <hiato1@gmail.com>2015-08-18 23:40:24 +0200
commit59ac92a1b21abe62a4552ed383498de7210f0048 (patch)
tree1450ff431a79d7e908ad457e8a41b47d66f97eba
parentb3369e4e8d02e696fefdb8bda79e383717fcb843 (diff)
Only change background if the env var is set
-rwxr-xr-xsc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc b/sc
index 7dd0253..a9e75f5 100755
--- a/sc
+++ b/sc
@@ -11,6 +11,5 @@ case "$1" in
*) xrandr --nograb ;;
esac;
-feh --bg-scale "$BACKGROUND_IMAGE"
-
+[ -n "$BACKGROUND_IMAGE" ] && feh --bg-scale "$BACKGROUND_IMAGE"
ratpoison -c restart