diff options
Diffstat (limited to 'setup.sh')
| -rwxr-xr-x | setup.sh | 28 |
1 files changed, 27 insertions, 1 deletions
@@ -66,6 +66,24 @@ function install_st() fi } +# Sxiv installation ----------------------------------------------------------- +# ----------------------------------------------------------------------------- +install_sxiv() +{ + local tools_dir="${1}"; shift; + local install_dir="${1}"; shift; + + if [ ! -f "${install_dir}/bin/sxiv" ]; + then + if [ ! -d "${tools_dir}/sxiv" ]; + then + git clone "https://github.com/muennich/sxiv.git" "${tools_dir}/sxiv" + fi + cd "${tools_dir}/sxiv" + make PREFIX="${install_dir}" install + fi +} + # Dein installation ----------------------------------------------------------- # # Dein is a manager for vim plugins. @@ -142,6 +160,9 @@ create_symlinks() rm -rf "${install_dir}/.config/dunst" ln -sfT "${cfg_dir}/dunst" "${install_dir}/.config/dunst" + + rm -rf "${install_dir}/.config/sxiv" + ln -sfT "${cfg_dir}/sxiv" "${install_dir}/.config/sxiv" } # Directory creation ---------------------------------------------------------- @@ -157,6 +178,8 @@ function create_dirs() mkdir -p "${root_dir}/.local/config/dunst" mkdir -p "${root_dir}/.local/config/i3" mkdir -p "${root_dir}/.local/config/git" + mkdir -p "${root_dir}/.local/config/sxiv" + mkdir -p "${root_dir}/.local/config/sxiv/exec" mkdir -p "${root_dir}/docs/downloads" mkdir -p "${root_dir}/docs/screenshots" @@ -192,6 +215,8 @@ function copy_files() "${dst_dir}/.local/config/xinitrc" cp -r "${src_dir}/dunstrc" \ "${dst_dir}/.local/config/dunst/dunstrc" + cp -r "${src_dir}/bin/image-info.sh" \ + "${dst_dir}/.local/config/sxiv/exec/image-info" configure_rtorrent "${src_dir}" "${dst_dir}" } @@ -228,7 +253,7 @@ configure_rtorrent() check_requirements() { local requirements="git make wget i3"; - local optional_deps="notify-send dunst pulseaudio scrot sudo redshift numlockx"; + local optional_deps="notify-send dunst pulseaudio scrot sudo redshift numlockx identify"; local requirements_not_met=0; for cmd in ${optional_deps}; @@ -281,6 +306,7 @@ main() install_st "${tools_dir}" "${local_dir}" install_dein "${tools_dir}" "${local_dir}" install_oh_my_zsh "${tools_dir}" "${local_dir}" + install_sxiv "${tools_dir}" "${local_dir}" create_symlinks "${cfg_dir}" "${HOME}" configure_xdg "${HOME}" |
