Improve some configs
This commit is contained in:
parent
0ed1633be6
commit
0edf379835
8 changed files with 46 additions and 11 deletions
|
@ -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}')
|
||||
|
|
|
@ -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" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue