diff options
| -rwxr-xr-x | bin/key-handler.sh | 15 | ||||
| -rwxr-xr-x | setup.sh | 4 |
2 files changed, 18 insertions, 1 deletions
diff --git a/bin/key-handler.sh b/bin/key-handler.sh new file mode 100755 index 0000000..360c36a --- /dev/null +++ b/bin/key-handler.sh @@ -0,0 +1,15 @@ +#!/bin/sh +while read file +do + case "$1" in + "C-l") + convert -rotate 270 "$file" "$file" ;; + "C-r") + convert -rotate 90 "$file" "$file" ;; + "C-c") + echo -n "$file" \ + | xclip -i -selection clipboard -f \ + | xclip -i -selection primary ;; + esac +done + @@ -220,6 +220,8 @@ copy_files() "${dst_dir}/.local/config/dunst/dunstrc" cp -r "${src_dir}/bin/image-info.sh" \ "${dst_dir}/.local/config/sxiv/exec/image-info" + cp -r "${src_dir}/bin/key-handler.sh" \ + "${dst_dir}/.local/config/sxiv/exec/key-handler" configure_rtorrent "${src_dir}" "${dst_dir}" } @@ -258,7 +260,7 @@ configure_rtorrent() check_requirements() { local requirements="git make wget i3"; - local optional_deps="notify-send dunst pulseaudio scrot sudo redshift numlockx identify"; + local optional_deps="notify-send dunst pulseaudio scrot sudo redshift numlockx identify convert xclip"; local requirements_not_met=0; for cmd in ${optional_deps}; |
