diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/buttons | 17 | ||||
-rwxr-xr-x | examples/find-lowres | 32 | ||||
-rw-r--r-- | examples/keys | 45 | ||||
-rw-r--r-- | examples/themes | 61 |
4 files changed, 155 insertions, 0 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 new file mode 100644 index 0000000..c1bb091 --- /dev/null +++ b/examples/keys @@ -0,0 +1,45 @@ +# feh key configuration. +# Comments start with a # sign, do not use them mid-line. +# Each line must be blank, a comment, or a key definition. +# +# key definition: <action name> <key1> [<key2> [<key3>]] +# +# Each <key> is an X11 keysym (as output by xev) with optional modifier. +# For instance, C-x would be Ctrl+X, or 4-space Mod4+Space + +# Examples for vim-like menu bindings on a qwerty keyboard: +menu_parent h Left +menu_child l Right +menu_down j Down +menu_up k Up +menu_select space Return + +# Same for image navigation ... +next_img j Right space +prev_img k Left BackSpace + +# and image movement +scroll_up J C-Up +scroll_down K C-Down +scroll_left H C-Left +scroll_right L C-Right + +# File deletion +remove d Delete +delete C-d C-Delete + +# remove now conflicts with toggle_filenames, so change that +toggle_filenames f + +# zooming +zoom_in C-Up f +zoom_out C-Down a +zoom_default d +zoom_fit s + +# I only hit these accidentally +save_image +save_filelist + +# This leaves some conflicts with existing default bindings, but you should +# get the idea. And I'm not gonna fix the conflicts, I don't use qwerty ;-) diff --git a/examples/themes b/examples/themes new file mode 100644 index 0000000..2d77770 --- /dev/null +++ b/examples/themes @@ -0,0 +1,61 @@ +# Feh themes configuration file. +# Lines starting with # are comments. Midline comments are not supported. +# Place this as either ~/.config/feh/themes or /etc/feh/themes + +# Options are defined in theme_name/options pairs. +# Separate themename and options by whitespace. + +# There are two ways of specifying the theme. Either use feh -Tthemename, +# or use a symbolic link to feh with the name of the theme. eg +# ln -s `which feh` ~/bin/mkindex +# Now when you run 'mkindex', feh will load the config specified for the +# mkindex theme. + +# Multiple options can of course be used. If they are too long for one line, +# you can use a \ to make them continue on the next one, but not mid-option. +# imagemap -rV --quiet -W 400 -H 300 \ +# --thumb-width 40 --thumb-height 30 + +# ==================== +# A few default themes +# ==================== + +# Webcam mode, simply specify the url(s). +# e.g. feh -Twebcam http://cam1 http://cam2 +webcam --multiwindow --reload 20 + +# Create an index of the current directory. This version uses . as the +# current dir, so you don't even need any commandline arguments. +mkindex -iVO index.jpg . + +# More ambitious version... +imgidx --index --output-only .fehindex.jpg --limit-width 1024 \ + --thumb-width 128 --thumb-height 128 --verbose --quiet + +# Show a presentation +present --full-screen --sort name --hide-pointer + +# Booth mode ;-) +booth --full-screen --hide-pointer --slideshow-delay 20 + +# Screw xscreensaver, use feh =) +screensave --recursive --full-screen --randomize --slideshow-delay 10 --hide-pointer + +# Some more examples, used by the feh developer + +rfs --full-screen --hide-pointer --auto-zoom --randomize +fs --full-screen --hide-pointer --auto-zoom --sort filename + +thumb_s --thumbnails --cache-thumbnails --thumb-width 128 --thumb-height 128 \ + --limit-width 1024 --sort filename \ + --fontpath /usr/share/fonts/truetype/ttf-dejavu/ --font DejaVuSans/8 + +thumb_b --thumbnails --cache-thumbnails --thumb-width 256 --thumb-height 256 \ + --limit-width 1024 --sort filename \ + --fontpath /usr/share/fonts/truetype/ttf-dejavu/ --font DejaVuSans/8 + +thumb_s_nt --thumbnails --cache-thumbnails --thumb-width 128 --thumb-height 128 \ + --limit-width 1024 --sort filename --index-name 0 + +thumb_b_nt --thumbnails --cache-thumbnails --thumb-width 256 --thumb-height 256 \ + --limit-width 1024 --sort filename --index-name 0 |