diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2017-11-23 22:17:40 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2017-11-23 22:18:28 +0000 |
commit | e2954b8108a5bbb441d1c98fa4888ba62611432f (patch) | |
tree | 0ef05ce1d33e0ce081d2884457f51d69a3f90650 | |
parent | 610a2894c08113a013e9e9b4a9b33f1ed19b3151 (diff) | |
download | imv-e2954b8108a5bbb441d1c98fa4888ba62611432f.tar.gz |
Provide default global config file
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | files/imv_config | 76 |
2 files changed, 79 insertions, 0 deletions
@@ -4,6 +4,7 @@ PREFIX ?= /usr BINPREFIX ?= $(PREFIX)/bin MANPREFIX ?= $(PREFIX)/share/man DATAPREFIX ?= $(PREFIX)/share +CONFIGPREFIX ?= /etc CFLAGS ?= -W -Wall -pedantic -Wmissing-prototypes CFLAGS += -std=c99 @@ -52,8 +53,10 @@ install: $(TARGET) install -D -m 0755 $(TARGET) $(DESTDIR)$(BINPREFIX)/imv install -D -m 0644 doc/imv.1 $(DESTDIR)$(MANPREFIX)/man1/imv.1 install -D -m 0644 files/imv.desktop $(DESTDIR)$(DATAPREFIX)/applications/imv.desktop + install -D -m 0644 files/imv_config $(DESTDIR)$(CONFIGPREFIX)/imv_config uninstall: $(RM) $(DESTDIR)$(BINPREFIX)/imv $(RM) $(DESTDIR)$(MANPREFIX)/man1/imv.1 $(RM) $(DESTDIR)$(DATAPREFIX)/applications/imv.desktop + @echo "$(DESTDIR)$(CONFIGPREFIX)/imv_config has not been removed. Please remove it manually." diff --git a/files/imv_config b/files/imv_config new file mode 100644 index 0000000..837803c --- /dev/null +++ b/files/imv_config @@ -0,0 +1,76 @@ +# Default config for imv + +# Start fullscreen +# fullscreen = true + +# Start with overlay visible +# overlay = true + +# Use nearest_neighbour interpolation for pixel art +# sampling = nearest_neighbour + +# Recurse into subdirectories when opening a path +# recursive = true + +# When we reach the end of the open images, don't go back to the start again +# cycle_input = false + +# Print all the images still open when we quit +# list_at_exit = true + +# Scaling mode, one of: none, shrink, and full +# scaling = none + +# Background, either a hex colour code or 'checks' +# background = 000000 + +# Change to the next image automatically after 3 seconds +# slideshow = 3 + +# Font to use for the overlay +# overlay_font = "Monospace:24" + +# Disable imv's builtin binds so they don't conflict with the ones in this config +default_binds = false + +[binds] + +Q = quit + +# Image navigation +<Left> = select_rel -1 +[ = select_rel -1 +<Right> = select_rel 1 +] = select_rel 1 +GG = select_abs 0 +<Shift+G> = select_abs -1 + +# Panning +J = pan 0 -50 +K = pan 0 50 +H = pan 50 0 +L = pan -50 0 + +#Zooming +<Up> = zoom 1 +I = zoom 1 +<Down> = zoom -1 +O = zoom -1 + +# Other commands +X = remove +F = fullscreen +D = overlay +P = exec echo $imv_path +C = center +S = scaling_mode next +A = zoom actual +R = reset + +# Gif playback +. = next_frame +<Space> = toggle_playing + +# Slideshow control +T = slideshow_duration +1 +<Shift+T> = slideshow_duration -1 |