From: Simon Ruderich Date: Thu, 15 Nov 2012 16:28:24 +0000 (+0100) Subject: feh/keys: Add, (Vi-like) mappings for feh. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=429ce4dc8ecc960043dc0258bd0f795ef66e62ba feh/keys: Add, (Vi-like) mappings for feh. Only works in recent feh versions. --- diff --git a/feh/keys b/feh/keys new file mode 100644 index 0000000..8d95910 --- /dev/null +++ b/feh/keys @@ -0,0 +1,45 @@ +# feh key mappings configuration file. + +# Copyright (C) 2012 Simon Ruderich +# +# This file is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this file. If not, see . + + +# Disable all mappings which modify the image, I use feh as an image viewer +# only and never want to modify any files by accident. +orient_1 +orient_3 +flip +mirror +# Also disable mappings which create or _remove_ files/images. +save_filelist +save_image +delete + +# Vim-like movement bindings when scrolling inside an image. +scroll_left h +scroll_right l +scroll_up k +scroll_down j +# And when moving in the file list. +prev_img K BackSpace +next_img J space + +# Zoom in/out. +zoom_in plus +zoom_out minus +zoom_fit equal + +# Toggle the filename display. +toggle_filenames f diff --git a/setup.sh b/setup.sh index aa010ff..2dc1693 100755 --- a/setup.sh +++ b/setup.sh @@ -67,3 +67,8 @@ if installed zathura; then mkdir -p ~/.config/zathura link zathurarc ~/.config/zathura/zathurarc fi + +if installed feh; then + mkdir -p ~/.config + link feh ~/.config/feh +fi