diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/buttons | 17 | ||||
-rwxr-xr-x | examples/find-lowres | 32 | ||||
-rw-r--r-- | examples/keys | 2 | ||||
-rw-r--r-- | examples/themes | 8 |
4 files changed, 50 insertions, 9 deletions
diff --git a/examples/buttons b/examples/buttons new file mode 100644 index 0000000..be6ce39 --- /dev/null +++ b/examples/buttons @@ -0,0 +1,17 @@ +# feh button configuration. +# Comments start with a # sign, do not use them mid-line. +# Each line must be blank, a comment, or a button definition. +# +# button definition: <action name> <button> +# +# A <button> is a button number with optional modifier. +# For instance, C-1 would be Ctrl + Left click, 4-2 Mod4 + Middle click, +# et cetera. + +# 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 a507951..2d77770 100644 --- a/examples/themes +++ b/examples/themes @@ -41,14 +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 -brushed --menu-bg " PREFIX "/share/feh/images/menubg_brushed.png -aluminium --menu-bg " PREFIX "/share/feh/images/menubg_aluminium.png -aqua --menu-bg " PREFIX "/share/feh/images/menubg_aqua.png -sky --menu-bg " PREFIX "/share/feh/images/menubg_sky.png -black --menu-bg " PREFIX "/share/feh/images/menubg_black.png \ - --menu-style " PREFIX "/share/feh/fonts/black.style - # Some more examples, used by the feh developer rfs --full-screen --hide-pointer --auto-zoom --randomize |