home | refactor
This commit is contained in:
parent
672d71a83a
commit
73fadb981d
468 changed files with 197 additions and 210 deletions
16
home/gui/files/local-qutebrowser/userscripts/mymail
Executable file
16
home/gui/files/local-qutebrowser/userscripts/mymail
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
set -x
|
||||
. ~/.myapps
|
||||
if [ -z "${MAILTERMPROG}" ]
|
||||
then
|
||||
MAILTERMPROG="${TERMPROG}"
|
||||
fi
|
||||
if [ "${TERMPROG}" == "xfce4-terminal" ]
|
||||
then
|
||||
flag='-x'
|
||||
else
|
||||
flag='-e'
|
||||
fi
|
||||
#$MAILTERMPROG "${flag}" neomutt -F "${HOME}/.config/neomutt/neomuttrc" "mailto:?subject=${QUTE_TITLE}&body=${QUTE_URL}%0A%0A${QUTE_SELECTED_TEXT}%0A%0A"
|
||||
echo "$MAILTERMPROG ${flag} neomutt mailto:?subject=${QUTE_TITLE}&body=${QUTE_URL}%0A%0A${QUTE_SELECTED_TEXT}%0A%0A" >> /tmp/mail.out
|
||||
$MAILTERMPROG "${flag}" neomutt "mailto:?subject=${QUTE_TITLE}&body=${QUTE_URL}%0A%0A${QUTE_SELECTED_TEXT}%0A%0A"
|
||||
25
home/gui/files/local-qutebrowser/userscripts/obsidian-import
Executable file
25
home/gui/files/local-qutebrowser/userscripts/obsidian-import
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -x
|
||||
|
||||
VAULT="/home/don/.obsidian/main"
|
||||
while getopts "r" opt
|
||||
do
|
||||
echo "${opt}"
|
||||
case "${opt}" in
|
||||
"r") VAULT="/home/don/.obsidian/Food" ;;
|
||||
esac
|
||||
done
|
||||
TITLE=$(echo "${QUTE_TITLE}" | sed -e 's/\//-/g' -e 's/|/-/g' -e 's/\\/-/g' -e 's/[():]//g' -e 's/&/and/g' )
|
||||
rm -f /tmp/"${TITLE}".{md,html}
|
||||
cp "${QUTE_HTML}" /tmp/"${TITLE}".html && \
|
||||
echo "---
|
||||
url: ${QUTE_URL}
|
||||
tags: web-import
|
||||
---" > "${VAULT}/Inbox/${TITLE}".md && \
|
||||
~/go/bin/html2md -A -F -S -T -V -Y -i /tmp/"${TITLE}".html >> "${VAULT}/Inbox/${TITLE}".md && \
|
||||
echo "
|
||||
|
||||
---
|
||||
From: [${QUTE_TITLE}](${QUTE_URL})" >> "${VAULT}/Inbox/${TITLE}".md
|
||||
#rm -f /tmp/"${TITLE}".html
|
||||
15
home/gui/files/local-qutebrowser/userscripts/obsidian-import-lite
Executable file
15
home/gui/files/local-qutebrowser/userscripts/obsidian-import-lite
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
VAULT="/home/don/.obsidian/main"
|
||||
TITLE=$(echo "${QUTE_TITLE}" | sed -e 's/\//-/g' -e 's/|/-/g' -e 's/\\/-/g' -e 's/[():]//g' -e 's/&/and/g' )
|
||||
rm -f /tmp/"${TITLE}".{md,html}
|
||||
echo "---
|
||||
url: ${QUTE_URL}
|
||||
tags: web-import
|
||||
---" > "${VAULT}/Inbox/${TITLE}".md && \
|
||||
echo "
|
||||
# ${TITLE}
|
||||
|
||||
---
|
||||
From: [${QUTE_TITLE}](${QUTE_URL})" >> "${VAULT}/Inbox/${TITLE}".md
|
||||
rm -f /tmp/"${TITLE}".html
|
||||
2
home/gui/files/local-qutebrowser/userscripts/recipe
Executable file
2
home/gui/files/local-qutebrowser/userscripts/recipe
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
snag_recipe "${QUTE_URL}"
|
||||
2
home/gui/files/local-qutebrowser/userscripts/sendphone
Executable file
2
home/gui/files/local-qutebrowser/userscripts/sendphone
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
kdeconnect-cli -d $(kdeconnect-cli -a |& grep 'paired and reachable' | grep -v Nexus | awk -F: '{print $2}' | awk '{print $1}') --share ${QUTE_URL}
|
||||
10
home/gui/files/local-qutebrowser/userscripts/sendurl
Executable file
10
home/gui/files/local-qutebrowser/userscripts/sendurl
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
. ~/.bash_ssh
|
||||
TARGET="t2"
|
||||
if [ "$(hostname -s)" == "${TARGET}" ]
|
||||
then
|
||||
HOST=loki
|
||||
else
|
||||
HOST=${TARGET}
|
||||
fi
|
||||
ssh "${HOST}" "/home/don/bin/myweb ${QUTE_URL}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue