23 lines
569 B
Org Mode
23 lines
569 B
Org Mode
#+TITLE: SXIV Configuration
|
|
#+SETUPFILE: ./setup/org-setup-file.org
|
|
|
|
#+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"
|
|
|
|
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
|
|
#+end_src
|