literate-dotfiles/image.org

23 lines
547 B
Org Mode
Raw Normal View History

2019-12-30 17:21:22 +01:00
#+TITLE: SXIV Configuration
2021-01-01 20:12:34 +01:00
#+SETUPFILE: ./setup/org-setup-file.org
2020-01-11 22:04:28 +01:00
2020-11-03 11:34:12 +01:00
#+PROPERTY: header-args:conf :tangle ~/.config/sxiv/exec/key-handler
#+PROPERTY: header-args:conf+ :comments both :mkdirp yes
#+PROPERTY: header-args:conf+ :shebang "#!/usr/bin/env bash"
2019-12-30 17:21:22 +01:00
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 ;;
esac
done
2019-12-30 17:21:22 +01:00
#+end_src