summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/buttons2
-rwxr-xr-xexamples/find-lowres17
-rw-r--r--examples/keys2
-rw-r--r--examples/themes5
4 files changed, 12 insertions, 14 deletions
diff --git a/examples/buttons b/examples/buttons
index 3c79413..be6ce39 100644
--- a/examples/buttons
+++ b/examples/buttons
@@ -14,4 +14,4 @@ zoom 3
# make scroll wheel (mousewheel up and down) zoom, instead of flipping images
zoom_in 4
-zoom_out 5 \ No newline at end of file
+zoom_out 5
diff --git a/examples/find-lowres b/examples/find-lowres
index 4a7d9a9..ac77e7b 100755
--- a/examples/find-lowres
+++ b/examples/find-lowres
@@ -1,4 +1,4 @@
-#!/usr/bin/env zsh
+#!/bin/sh
# Recursively find images below a certain resolution
#
# Usage: find-lowres [-r] [directory [dimension]]
@@ -10,20 +10,23 @@
remove=0
-while [[ $1 == -* ]]; do
+while true
+do
case $1 in
-r) remove=1 ;;
+ -*) echo "option \"$1\" ignored" ;;
-|--) shift; break ;;
+ *) break ;;
esac
shift
done
-base=${1-.}
-dimension=${2-1000x800}
+dir=${1:-.}
+dimension=${2:-1000x800}
-if (( remove ))
+if [ "$remove" = "1" ]
then
- feh --action 'rm %F' -rlV --max-dim ${dimension} ${base}
+ feh --action 'rm %F' -rlV --max-dim "${dimension}" "${dir}"
else
- feh -rlV --max-dim ${dimension} ${base}
+ feh -rlV --max-dim "${dimension}" "${dir}"
fi
diff --git a/examples/keys b/examples/keys
index d221d29..c1bb091 100644
--- a/examples/keys
+++ b/examples/keys
@@ -37,7 +37,7 @@ zoom_out C-Down a
zoom_default d
zoom_fit s
-# I only hit these accidentaly
+# I only hit these accidentally
save_image
save_filelist
diff --git a/examples/themes b/examples/themes
index d315942..2d77770 100644
--- a/examples/themes
+++ b/examples/themes
@@ -41,11 +41,6 @@ booth --full-screen --hide-pointer --slideshow-delay 20
# Screw xscreensaver, use feh =)
screensave --recursive --full-screen --randomize --slideshow-delay 10 --hide-pointer
-# Different menus
-aqua --menu-bg /usr/share/feh/images/menubg_aqua.png
-sky --menu-bg /usr/share/feh/images/menubg_sky.png
-black --menu-bg /usr/share/feh/images/menubg_black.png
-
# Some more examples, used by the feh developer
rfs --full-screen --hide-pointer --auto-zoom --randomize