summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/colorhandler4
-rwxr-xr-x.local/bin/compiler14
2 files changed, 10 insertions, 8 deletions
diff --git a/.local/bin/colorhandler b/.local/bin/colorhandler
index 7e35263..3f0f18f 100755
--- a/.local/bin/colorhandler
+++ b/.local/bin/colorhandler
@@ -1,6 +1,8 @@
#!/bin/sh
-col=$(colorpicker --short --one-shot)
+[ -z "$1" ] && col=$(colorpicker --short --one-shot) ||
+ col="$1"
+
sed "s/fill=.*>/fill=\"$col\">/g" $HOME/.local/share/circle.svg > /tmp/circle.svg
diff --git a/.local/bin/compiler b/.local/bin/compiler
index e6a6db3..5754848 100755
--- a/.local/bin/compiler
+++ b/.local/bin/compiler
@@ -13,13 +13,13 @@ base="${file%.*}"
cd "$dir" || exit
textype() {
- command="pdflatex"
- (sed 5q "$file" | grep -i -q 'xelatex') && command="xelatex"
- $command --output-directory="$dir" "$base" &&
- grep -i addbibresource "$file" >/dev/null &&
- biber --input-directory "$dir" "$base" &&
- $command --output-directory="$dir" "$base" &&
- $command --output-directory="$dir" "$base"
+ command="pdflatex"
+ (sed 5q "$file" | grep -i -q 'xelatex') && command="xelatex"
+ $command --output-directory="$dir" "$base" &&
+ grep -i addbibresource "$file" >/dev/null &&
+ biber --input-directory "$dir" "$base" &&
+ $command --output-directory="$dir" "$base" &&
+ $command --output-directory="$dir" "$base"
}
case "$file" in