summaryrefslogtreecommitdiff
path: root/scripts/random_wallpaper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/random_wallpaper.sh')
-rwxr-xr-xscripts/random_wallpaper.sh21
1 files changed, 0 insertions, 21 deletions
diff --git a/scripts/random_wallpaper.sh b/scripts/random_wallpaper.sh
deleted file mode 100755
index 3d2f803..0000000
--- a/scripts/random_wallpaper.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-# Reads a given directory and set a random
-# wallpaper using the images on that dir.
-
-[ -x /usr/bin/convert ] || exit 1
-[ -x /usr/bin/feh ] || exit 1
-
-if [ -d "${WALLPAPERDIR}" ]; then
- files=$(ls "${WALLPAPERDIR}")
- file_matrix=($files)
- num_files=${#file_matrix[*]}
- file="${WALLPAPERDIR}/${file_matrix[$((RANDOM%num_files))]}"
-else
- file = ${FVWM_USERDIR}/images/default_wall.jpg
-fi
-
-convert "${file}" -resize `xdpyinfo |grep dimensions|awk '{print $2}'` "${FVWM_USERDIR}/tmp/current_wall.png"
-feh --bg-center "${FVWM_USERDIR}/tmp/current_wall.png"
-FvwmCommand Refresh
-
-exit 0