~kota/dots

00814b787d2b5b14c4b9e0e70f55f78215575d70 — Dakota Walsh 2 months ago 185e8f0
various script changes
7 files changed, 33 insertions(+), 7 deletions(-)

A bin/bin/backup
D bin/bin/dito
R bin/bin/{archive => git-pull-all}
A bin/bin/pics-new
M bin/bin/scrotactive
R bin/bin/{night => scrotselect} -rw-r--r-- => -rwxr-xr-x
D bin/bin/search-cache
A bin/bin/backup => bin/bin/backup +24 -0
@@ 0,0 1,24 @@
#!/bin/sh

export BORG_REPO=/run/media/kota/sietch/borg

borg create                             \
    --stats                             \
    --progress                          \
		--exclude "$HOME/docs/games/*"      \
		--exclude "$HOME/docs/podcasts/*"   \
		--exclude "$HOME/docs/audiobooks/*" \
		--exclude "$HOME/docs/iso/*"        \
                                        \
    ::'{user}-{now}'                    \
    ~/docs                              \
    ~/pics                              \
    ~/music                             \
    ~/g                                 \

# borg prune                              \
#     --list                              \
#     --prefix '{user}-'                  \
#     --show-rc                           \
#     --keep-weekly   2                   \
#     --keep-monthly  2                   \

D bin/bin/dito => bin/bin/dito +0 -0
R bin/bin/archive => bin/bin/git-pull-all +0 -0
A bin/bin/pics-new => bin/bin/pics-new +6 -0
@@ 0,0 1,6 @@
#!/bin/sh
# pic-new [input]
# Moves pictures from the input folder into an organized structure in the
# cwd.

exiftool '-FileName<FileModifyDate' '-FileName<DateTimeOriginal' -d %Y/%m/%Y%m%d_%H%M%S%%-c.%%e "$1"

M bin/bin/scrotactive => bin/bin/scrotactive +1 -1
@@ 1,3 1,3 @@
#!/bin/sh

maim -i $(xdotool getactivewindow) | xclip -selection clipboard -t image/png
maim -m 10 -i $(xdotool getactivewindow) | xclip -selection clipboard -t image/png

R bin/bin/night => bin/bin/scrotselect +2 -0
@@ 1,1 1,3 @@
#!/bin/sh

maim -m 10 -s | xclip -selection clipboard -t image/png

D bin/bin/search-cache => bin/bin/search-cache +0 -6
@@ 1,6 0,0 @@
#!/bin/sh

fd --type d . '/home/kota' > "$HOME/.cache/search-cache-dirs"
fd -H --type d . '/home/kota' > "$HOME/.cache/search-cache-dirs-hidden"
fd --type f . '/home/kota' > "$HOME/.cache/search-cache-files"
fd -H --type f . '/home/kota' > "$HOME/.cache/search-cache-files-hidden"