summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/buttons4
-rwxr-xr-xexamples/find-lowres32
-rw-r--r--examples/keys2
-rw-r--r--examples/themes5
4 files changed, 37 insertions, 6 deletions
diff --git a/examples/buttons b/examples/buttons
index e625f9e..be6ce39 100644
--- a/examples/buttons
+++ b/examples/buttons
@@ -11,3 +11,7 @@
# Switch menu and zoom keys, useful for two-button touchpads
menu 2
zoom 3
+
+# make scroll wheel (mousewheel up and down) zoom, instead of flipping images
+zoom_in 4
+zoom_out 5
diff --git a/examples/find-lowres b/examples/find-lowres
new file mode 100755
index 0000000..ac77e7b
--- /dev/null
+++ b/examples/find-lowres
@@ -0,0 +1,32 @@
+#!/bin/sh
+# Recursively find images below a certain resolution
+#
+# Usage: find-lowres [-r] [directory [dimension]]
+#
+# directory defaults to . (the current working directory),
+# dimension defaults to 1000x800 pixels
+#
+# With -r: removes images instead of just listing them. Use at your own risk.
+
+remove=0
+
+while true
+do
+ case $1 in
+ -r) remove=1 ;;
+ -*) echo "option \"$1\" ignored" ;;
+ -|--) shift; break ;;
+ *) break ;;
+ esac
+ shift
+done
+
+dir=${1:-.}
+dimension=${2:-1000x800}
+
+if [ "$remove" = "1" ]
+then
+ feh --action 'rm %F' -rlV --max-dim "${dimension}" "${dir}"
+else
+ 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