#+TITLE: SXIV Configuration
:DRAWER:
#+STARTUP: overview
#+LANGUAGE: en
#+EMAIL: dehaeze.thomas@gmail.com
#+AUTHOR: Dehaeze Thomas
#+HTML_LINK_HOME: ./index.html
#+HTML_LINK_UP: ./index.html
#+HTML_HEAD:
#+HTML_HEAD:
#+HTML_HEAD:
#+HTML_HEAD:
#+HTML_HEAD:
#+HTML_HEAD:
#+PROPERTY: header-args: :tangle ~/.config/sxiv/exec/key-handler
#+PROPERTY: header-args+: :comments both :mkdirp yes
#+PROPERTY: header-args+: :shebang "#!/usr/bin/env bash"
:END:
Press =C-x= to activate to key handler.
#+begin_src conf
while read file
do
case "$1" in
"C-d")
mv "$file" ~/.trash ;;
"C-r")
convert -rotate 90 "$file" "$file" ;;
"C-c")
echo -n "$file" | xsel -ib ;;
"C-w")
nitrogen --save --set-zoom-fill "$file" ;;
esac
done
#+end_src