scripts: Rename reader, Fix listing, Add sxhkd bind

Renamed general reader script to `wallr`, indicating wallabag as the
underlying reader input.
Fixed listing of unread articles which showed read articles before.

Added shortcuts to sxhkd's academia mode:
the existing `r` invokes wallr with unread article display;
newly added `shift+r` invokes wallr with all articles displayed.
This commit is contained in:
Marty Oehme 2021-03-08 09:14:33 +01:00
parent 5ca27e5fd5
commit c12eed218f
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,5 @@
#!/usr/bin/env sh #!/usr/bin/env sh
# Read # Read wallabag articles from the commandline
# extended version of one-liner script to read wallabag articles in shell # extended version of one-liner script to read wallabag articles in shell
# "wallabag list -n | head -n-1 | tail -n+2 | fzf | sed -e 's/^ //' | cut -f1 -d' ' | xargs wallabag show | ifne less" # "wallabag list -n | head -n-1 | tail -n+2 | fzf | sed -e 's/^ //' | cut -f1 -d' ' | xargs wallabag show | ifne less"
@ -102,7 +102,7 @@ while getopts "h?qnorse" opt; do
# v) verbose=1 # v) verbose=1
# ;; # ;;
n) n)
WALLR_FILTER="new" WALLR_FILTER="unread"
;; ;;
r) r)
WALLR_FILTER="read" WALLR_FILTER="read"

View file

@ -84,6 +84,6 @@ alt + a : shift + {F1,F2}
rofi-bib-due -p{1,3} rofi-bib-due -p{1,3}
alt + a : F3 alt + a : F3
rofi-bib-due rofi-bib-due
# read wallabag articles from the cmdline
alt + a : r alt + a : {r, shift+r}
alacritty --class floating,floating -e reader -n alacritty --class floating,floating -e wallr {-n,_}