summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2021-05-25 20:55:00 -0400
committerAdam T. Carpenter <atc@53hor.net>2021-05-25 20:55:00 -0400
commit7f1adf1900081409214e83a59369967ceaac441f (patch)
tree03f3cd2c61b3184f282cfedeaadfa5d703ab96b3
parent46d818b758a0f800e98d772025c699e7d4ce10a2 (diff)
downloadscripts-7f1adf1900081409214e83a59369967ceaac441f.tar.xz
scripts-7f1adf1900081409214e83a59369967ceaac441f.zip
moved small scripts into functions
-rwxr-xr-ximager.sh2
-rwxr-xr-xthemer.sh29
2 files changed, 0 insertions, 31 deletions
diff --git a/imager.sh b/imager.sh
deleted file mode 100755
index 7aa24c9..0000000
--- a/imager.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-find . -type f -maxdepth 1 -exec sxiv -a "$1" "{}" +
diff --git a/themer.sh b/themer.sh
deleted file mode 100755
index 07d7182..0000000
--- a/themer.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-add_theme() {
- indir=$1
- [ -z "$indir" ] && indir=~/downloads
- outdir=~/.local/share/wallpapers
- [ ! -d "$indir" ] && exit 1
- [ ! -d "$outdir" ] && mkdir -p "$outdir"
- sxiv -rot "$indir" | while read infile; do
- outfile=$outdir/$(basename "$infile" | tr ' ' '_' | tr '[:upper:]' '[:lower:]')
- convert "$infile" -geometry '2560x1440^' -gravity center -crop 2560x1440+0+0 "$outfile"
- wpg -a "$outfile"
- done
-}
-
-set_theme() {
- theme=$(sxiv -rot ~/.config/wpg/wallpapers)
- [ -z "$theme" ] && exit 4
- wpg -s "$theme"
- #convert -verbose -background black -vignette 100x65000 "$theme" ~/pictures/wallpapers/lock.png &
-}
-
-reapply_theme() {
- wpg -s "$(wpg -c)"
-}
-
-[ "$1" = "-r" ] && reapply_theme && exit
-[ "$1" = "-a" ] && add_theme "$2"
-[ "$1" = "-s" ] && set_theme