From b208bd759a2c50a2060a73de41b2174861801dee Mon Sep 17 00:00:00 2001 From: ktyl Date: Tue, 17 Aug 2021 00:22:23 +0100 Subject: [PATCH] image sorting scripts --- .scripts/env.sh | 5 +++++ .scripts/img/cllist | 3 +++ .scripts/img/mklist | 3 +++ .scripts/img/mvlist | 5 +++++ .zshrc | 2 -- 5 files changed, 16 insertions(+), 2 deletions(-) create mode 100755 .scripts/img/cllist create mode 100755 .scripts/img/mklist create mode 100755 .scripts/img/mvlist diff --git a/.scripts/env.sh b/.scripts/env.sh index 0e0d909..e2bccf6 100644 --- a/.scripts/env.sh +++ b/.scripts/env.sh @@ -3,3 +3,8 @@ # source env scripts in subdirectories source $SCRIPTS/cam/env.sh +source $SCRIPTS/img/env.sh + +export PATH=$PATH:$SCRIPTS +export PATH=$PATH:$SCRIPTS/cam +export PATH=$PATH:$SCRIPTS/img diff --git a/.scripts/img/cllist b/.scripts/img/cllist new file mode 100755 index 0000000..a582bf4 --- /dev/null +++ b/.scripts/img/cllist @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +rm ./list || touch ./list diff --git a/.scripts/img/mklist b/.scripts/img/mklist new file mode 100755 index 0000000..f109af0 --- /dev/null +++ b/.scripts/img/mklist @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +sxiv -o . >> list diff --git a/.scripts/img/mvlist b/.scripts/img/mvlist new file mode 100755 index 0000000..4c24bf5 --- /dev/null +++ b/.scripts/img/mvlist @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +while read l; do mv $l $1; done <./list + +rm ./list diff --git a/.zshrc b/.zshrc index 2e7bba8..3f31dba 100644 --- a/.zshrc +++ b/.zshrc @@ -9,8 +9,6 @@ export PATH=$PATH:$HOME/.local/share/gem/ruby/3.0.0/bin export SCRIPTS=$HOME/.scripts source $SCRIPTS/env.sh -export PATH=$PATH:$SCRIPTS -export PATH=$PATH:$SCRIPTS/cam export TERMINAL=/usr/bin/kitty export EDITOR=/usr/bin/nvim