Improve some configs

This commit is contained in:
Tobias Reisinger 2024-06-13 18:29:58 +02:00
parent 0ed1633be6
commit 0edf379835
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
8 changed files with 46 additions and 11 deletions

View file

@ -8,6 +8,7 @@ def init(c):
c.bind(',ef', 'spawn firefox {url}')
c.bind(',eF', 'hint links spawn firefox {hint-url}')
c.bind(',es', 'spawn xdg-open steam://openurl/{url}')
c.bind(',ep', 'spawn kdeconnect-cli -n Fairphone3 --share {url}')
c.bind(',g', 'open {url:scheme}://github1s.com{url:path}{url:query}')

View file

@ -11,6 +11,12 @@ collection=$(get_collections | $DMENU -p "Collection: ")
url=$QUTE_URL
name=$(echo "$QUTE_TITLE" | $DMENU -p "Title: ")
if [ -z "$url" ] || [ -z "$name" ] || [ -z "$collection" ]
then
echo "message-error \"Failed to save link: Missing required fields\"" >> "$QUTE_FIFO"
exit 0
fi
payload=$(jq -n \
--arg u "$url" \
--arg n "$name" \