summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-01-17 20:35:44 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-01-17 20:35:44 +0100
commit21457d1aba3cb8395173679e3a799a17c344a8d2 (patch)
tree978e87e0661d8bdcd94e04b9c28918ae99ab0730 /examples
parent5a05f95cd6c3bdeef4f5c5c66d574a71570c36f7 (diff)
data -> share, data/examples -> examples
Diffstat (limited to 'examples')
-rw-r--r--examples/keys40
-rw-r--r--examples/themes69
2 files changed, 109 insertions, 0 deletions
diff --git a/examples/keys b/examples/keys
new file mode 100644
index 0000000..1f1f374
--- /dev/null
+++ b/examples/keys
@@ -0,0 +1,40 @@
+# 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
+remove l Delete
+delete C-l C-Delete
+
+# and image movement
+scroll_up J C-Up
+scroll_down K C-Down
+scroll_left H C-Left
+scroll_right L C-Right
+
+# zooming
+zoom_in C-Up f
+zoom_out C-Down a
+zoom_default d
+zoom_fit s
+
+# I only hit these accidentaly
+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..a507951
--- /dev/null
+++ b/examples/themes
@@ -0,0 +1,69 @@
+# 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
+
+# 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
+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