Compare commits
No commits in common. "01711935b6aea45360e53f50045364b0c61ca1a0" and "6166d0e554e9276f2e2b593eeeeae926353bbfe3" have entirely different histories.
01711935b6
...
6166d0e554
@ -44,7 +44,7 @@ config.bind('td', 'config-cycle colors.webpage.darkmode.enabled true false;; res
|
|||||||
|
|
||||||
c.url.default_page = "~/.config/qutebrowser/homepage.html"
|
c.url.default_page = "~/.config/qutebrowser/homepage.html"
|
||||||
c.url.start_pages = "~/.config/qutebrowser/homepage.html"
|
c.url.start_pages = "~/.config/qutebrowser/homepage.html"
|
||||||
c.url.searchengines = {"DEFAULT":"https://searx.be/search?q={}"}
|
c.url.searchengines = {"DEFAULT":"https://xo.wtf/search?q={}"}
|
||||||
c.downloads.location.directory = "~/quar/"
|
c.downloads.location.directory = "~/quar/"
|
||||||
|
|
||||||
c.zoom.default = "90%"
|
c.zoom.default = "90%"
|
||||||
|
@ -87,4 +87,4 @@ bind -n C-M-n newpanecurdir
|
|||||||
|
|
||||||
bind -T copy-mode-vi v send -X begin-selection
|
bind -T copy-mode-vi v send -X begin-selection
|
||||||
bind -T copy-mode-vi V send -X select-line
|
bind -T copy-mode-vi V send -X select-line
|
||||||
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'cb.sh set'
|
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# clipboard wrapper
|
|
||||||
|
|
||||||
no_provider () {
|
|
||||||
echo "no providers for clipboard found!"
|
|
||||||
echo "supported: termux-api, xsel, xclip"
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ "$1" = "set" ]; then
|
|
||||||
if command -v xsel > /dev/null; then
|
|
||||||
xsel -ib
|
|
||||||
elif command -v termux-clipboard-set > /dev/null; then
|
|
||||||
cat /dev/stdin | termux-clipboard-set
|
|
||||||
else
|
|
||||||
no_provider
|
|
||||||
fi
|
|
||||||
elif [ "$1" = "get" ]; then
|
|
||||||
if command -v xsel > /dev/null; then
|
|
||||||
xsel -b
|
|
||||||
elif command -v termux-clipboard-set > /dev/null; then
|
|
||||||
termux-clipboard-get
|
|
||||||
else
|
|
||||||
no_provider
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "usage: cb.sh get/set"
|
|
||||||
echo "pipe in data"
|
|
||||||
fi
|
|
@ -15,16 +15,13 @@ GENIUS="sing.whatever.social"
|
|||||||
FANDOM="breezewiki.com"
|
FANDOM="breezewiki.com"
|
||||||
YOUTUBE="yewtu.be"
|
YOUTUBE="yewtu.be"
|
||||||
MEDIUM="libmedium.batsense.net"
|
MEDIUM="libmedium.batsense.net"
|
||||||
QUORA="quetre.frontendfriendly.xyz"
|
|
||||||
|
|
||||||
LINK="$(printf "%s" "$QUTE_URL" | sed \
|
LINK="$(printf "%s" "$QUTE_URL" | sed \
|
||||||
-e "s/www.reddit.com/$REDDIT/g" \
|
-e "s/www.reddit.com/$REDDIT/g" \
|
||||||
-e "s/old.reddit.com/$REDDIT/g" \
|
|
||||||
-e "s/twitter.com/$TWITTER/g" \
|
-e "s/twitter.com/$TWITTER/g" \
|
||||||
-e "s/genius.com/$GENIUS/g" \
|
-e "s/genius.com/$GENIUS/g" \
|
||||||
-e "s/fandom.com/$FANDOM/g" \
|
-e "s/fandom.com/$FANDOM/g" \
|
||||||
-e "s/medium.com/$MEDIUM/g" \
|
-e "s/medium.com/$MEDIUM/g" \
|
||||||
-e "s/www.quora.com/$QUORA/g" \
|
|
||||||
-e "s/youtube.com/$YOUTUBE/g")"
|
-e "s/youtube.com/$YOUTUBE/g")"
|
||||||
|
|
||||||
echo "open $1 $LINK" >> "$QUTE_FIFO"
|
echo "open $1 $LINK" >> "$QUTE_FIFO"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user