updated scripts and pulled latests changes from voidrice
This commit is contained in:
parent
0e95230b6a
commit
0ba1f4b603
@ -17,13 +17,15 @@ ext="${file##*.}"
|
|||||||
cd "$dir" || exit 1
|
cd "$dir" || exit 1
|
||||||
|
|
||||||
textype() { \
|
textype() { \
|
||||||
|
textarget="$(getcomproot "$file" || echo "$file")"
|
||||||
|
echo "$textarget"
|
||||||
command="pdflatex"
|
command="pdflatex"
|
||||||
( head -n5 "$file" | grep -qi 'xelatex' ) && command="xelatex"
|
( head -n5 "$textarget" | grep -qi 'xelatex' ) && command="xelatex"
|
||||||
$command --output-directory="$dir" "$base" &&
|
$command --output-directory="${textarget%/*}" "${textarget%.*}"
|
||||||
grep -qi addbibresource "$file" &&
|
grep -qi addbibresource "$textarget" &&
|
||||||
biber --input-directory "$dir" "$base" &&
|
biber --input-directory "${textarget%/*}" "${textarget%.*}" &&
|
||||||
$command --output-directory="$dir" "$base" &&
|
$command --output-directory="${textarget%/*}" "${textarget%.*}" &&
|
||||||
$command --output-directory="$dir" "$base"
|
$command --output-directory="${textarget%/*}" "${textarget%.*}"
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$ext" in
|
case "$ext" in
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Toggles all cronjobs off/on.
|
# Toggles all cronjobs off/on.
|
||||||
# Stores disabled crontabs in ~/.consaved until restored.
|
# Stores disabled crontabs in ~/.config/cronsaved until restored.
|
||||||
|
|
||||||
([ -f "${XDG_CONFIG_HOME:-$HOME/.config}"/cronsaved ] && crontab - < "${XDG_CONFIG_HOME:-$HOME/.config}"/cronsaved && rm "${XDG_CONFIG_HOME:-$HOME/.config}"/cronsaved && notify-send "🕓 Cronjobs re-enabled.") || ( crontab -l > "${XDG_CONFIG_HOME:-$HOME/.config}"/cronsaved && crontab -r && notify-send "🕓 Cronjobs saved and disabled.")
|
([ -f "${XDG_CONFIG_HOME:-$HOME/.config}"/cronsaved ] && crontab - < "${XDG_CONFIG_HOME:-$HOME/.config}"/cronsaved && rm "${XDG_CONFIG_HOME:-$HOME/.config}"/cronsaved && notify-send "🕓 Cronjobs re-enabled.") || ( crontab -l > "${XDG_CONFIG_HOME:-$HOME/.config}"/cronsaved && crontab -r && notify-send "🕓 Cronjobs saved and disabled.")
|
||||||
|
|||||||
@ -16,5 +16,3 @@ case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area
|
|||||||
"current window (copy)") maim -q -d 0.2 -i "$(xdotool getactivewindow)" | ${xclip_cmd} ;;
|
"current window (copy)") maim -q -d 0.2 -i "$(xdotool getactivewindow)" | ${xclip_cmd} ;;
|
||||||
"full screen (copy)") maim -q -d 0.2 | ${xclip_cmd} ;;
|
"full screen (copy)") maim -q -d 0.2 | ${xclip_cmd} ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
notify-send "Screenshot captured and saved to your home folder."
|
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
basename="${1%.*}"
|
basename="${1%.*}"
|
||||||
|
|
||||||
case "${*}" in
|
case "${*}" in
|
||||||
*.tex|*.m[dse]|*.[rR]md|*.mom|*.[0-9]) setsid -f xdg-open "$basename".pdf >/dev/null 2>&1 ;;
|
*.tex|*.sil|*.m[dse]|*.[rR]md|*.mom|*.[0-9]) target="$(getcomproot "$1" || echo "$1")" ; setsid -f xdg-open "${target%.*}".pdf >/dev/null 2>&1 ;;
|
||||||
*.html) setsid -f "$BROWSER" "$basename".html >/dev/null 2>&1 ;;
|
*.html) setsid -f "$BROWSER" "$basename".html >/dev/null 2>&1 ;;
|
||||||
*.sent) setsid -f sent "$1" >/dev/null 2>&1 ;;
|
*.sent) setsid -f sent "$1" >/dev/null 2>&1 ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user