aboutsummaryrefslogtreecommitdiff
path: root/bg.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bg.sh')
-rwxr-xr-xbg.sh12
1 files changed, 0 insertions, 12 deletions
diff --git a/bg.sh b/bg.sh
deleted file mode 100755
index 9bcefa6..0000000
--- a/bg.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-WALLPAPERS_HOME=${1:-$HOME/pics/wallpapers}
-
-# Get a random image file from the dir.
-RAND_BG=$(find "$WALLPAPERS_HOME" -type f -name "*.jpeg" -o -name "*.jpg" -o -name "*.png" | shuf | head -n1)
-
-# Set the image file as the background.
-(command -v wbg > /dev/null || (echo "wbg is not installed." && exit 1) && \
- # else
- notify-send "Set background." && wbg "${RAND_BG}"
-)