qutebrowser: Make use of dotter for dir structure
Since we now use dotter we can simplify the dir structure for qutebrowser a lot. Everything dot-filed earlier can now reside in simple directories called config (for ~/.config/qutebrowser), data (for ~/.local/share/qutebrowser), and scripts (for ~/.local/bin) files.
This commit is contained in:
parent
dcde027a67
commit
8681d34946
49 changed files with 9 additions and 5 deletions
26
qutebrowser/data/userscripts/wallabag_add.sh
Executable file
26
qutebrowser/data/userscripts/wallabag_add.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#! /usr/bin/env bash
|
||||
#
|
||||
# Send current page/link to a wallabag instance.
|
||||
#
|
||||
# Can be used for sending the current page via:
|
||||
# :spawn --userscript wallabag_add.sh
|
||||
# for sending an arbitrary page passed as argument:
|
||||
# :spawn --userscript wallabag_add.sh https://myinterestingtext.com
|
||||
# or for sending a hinted link:
|
||||
# :hint links userscript wallabag_add.sh
|
||||
#
|
||||
# Configure your wallabag instance with this:
|
||||
WALLABAG_INSTANCE="https://read.martyoeh.me"
|
||||
|
||||
# only works for wallabag v2.*
|
||||
if [ "$#" -gt 0 ]; then
|
||||
BM="$WALLABAG_INSTANCE/bookmarklet?url=$*"
|
||||
else
|
||||
BM="$WALLABAG_INSTANCE/bookmarklet?url=$QUTE_URL"
|
||||
fi
|
||||
|
||||
if [ -n "$QUTE_FIFO" ]; then
|
||||
echo "open -b -r $BM" >>"$QUTE_FIFO"
|
||||
else
|
||||
xdg-open "$BM"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue