dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 80bab498578a2c8126c24df54a2866b37e1b584b
parent 91e53b1a57b83171da829051f76b071d44d39eb5
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Wed, 23 Sep 2020 12:17:01 +0200

newsboat: add pocket-save script, fix macro

The new version of newsboat made it a startup error if a macro doesn't
contain an operation, and grouped commands (with {}) aren't interpreted
as operations. So if I want to background and disown the whole
save-to-pocket macro, I have to make it an external script and call that
from newsboat.


Former-commit-id: beb650361c856d84a249ad8fa8fea9a921b059e0
Diffstat:
Mdot.map | 1+
Mnewsboat/cache.db.REMOVED.git-id | 4++--
Mnewsboat/config | 4++--
Mnewsboat/urls | 1+
Ascripts/pocketsave | 5+++++
5 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/dot.map b/dot.map @@ -18,6 +18,7 @@ lf: ~/.config/lf newsboat: - config: ~/.config/newsboat/config - urls: ~/.config/newsboat/urls +- notify-wrapper: ~/.config/newsboat/notify-wrapper - cache.db: ~/.local/share/newsboat/cache.db - history.search: ~/.local/share/newsboat/history.search - history.cmdline: ~/.local/share/newsboat/history.cmdline diff --git a/newsboat/cache.db.REMOVED.git-id b/newsboat/cache.db.REMOVED.git-id @@ -1 +1 @@ -5cfc2dd7a9c3dd2d784baa7d8a0f43684dd3c503- \ No newline at end of file +2917c664b694849fd3fafbff49e5c8c5416f1c8d+ \ No newline at end of file diff --git a/newsboat/config b/newsboat/config @@ -48,7 +48,7 @@ color listnormal_unread white default browser "open -g '%u'" macro , open-in-browser -macro i set browser "i(){ youtube-dl --get-title --get-duration --get-description $1 | less;};i"; open-in-browser ; set browser "open -g '%u'" +macro i set browser "youtube-dl --get-title --get-duration --get-description '%u' | less"; open-in-browser; set browser "open -g '%u'" macro v set browser "mpvq %u 1>/dev/null 2>&1 & disown"; open-in-browser ; set browser "open -g '%u'" macro w set browser "w3m"; open-in-browser ; set browser "open -g '%u'" macro l set browser "lynx"; open-in-browser ; set browser "open -g '%u'" @@ -56,4 +56,4 @@ macro c set browser "pbcopy <<<" ; open-in-browser ; set browser "open -g '%u'" macro u set browser "urlview"; open-in-browser ; set browser "open -g '%u'" macro a set browser "newsboat-dl aonly %u 1>/dev/null 2>&1 & disown"; open-in-browser ; set browser "open -g '%u'" macro d set browser "newsboat-dl av %u 1>/dev/null 2>&1 & disown"; open-in-browser ; set browser "open -g '%u'" -macro s set browser "{ open -gj 'pocket://add?url=%u' && sleep 3 && killall Pocket; } 1>/dev/null 2>&1 & disown"; open-in-browser ; set browser "open -g '%u'" +macro s set browser "pocketsave '%u' 1>/dev/null 2>&1 & disown"; open-in-browser ; set browser "open -g '%u'" diff --git a/newsboat/urls b/newsboat/urls @@ -59,6 +59,7 @@ https://github.com/getzola/zola/releases.atom "sof https://www.freelists.org/feed/regolith-linux "software-releases" "!" "~Regolith Linux" https://github.com/laurent22/joplin/releases.atom "software-releases" "!" "~Joplin" https://gitlab.com/ajak/tuir/-/tags?format=atom "software-releases" "!" "~Tuir" +https://github.com/newsboat/newsboat/releases.atom "software-releases" "!" "~Newsboat" "query:Software releases:tags # \"software-releases\"" "tech" # Followed videos diff --git a/scripts/pocketsave b/scripts/pocketsave @@ -0,0 +1,5 @@ +#!/bin/sh +open -gj "pocket://add?url=$1" \ + && sleep 3 \ + && killall Pocket +