From c12eed218f2532b99b6235fb104206c4baf3895a Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 8 Mar 2021 09:14:33 +0100 Subject: [PATCH] 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. --- scripts/.local/bin/{reader => wallr} | 4 ++-- sxhkd/.config/sxhkd/sxhkdrc | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename scripts/.local/bin/{reader => wallr} (97%) diff --git a/scripts/.local/bin/reader b/scripts/.local/bin/wallr similarity index 97% rename from scripts/.local/bin/reader rename to scripts/.local/bin/wallr index 474ae9e..09339e1 100755 --- a/scripts/.local/bin/reader +++ b/scripts/.local/bin/wallr @@ -1,5 +1,5 @@ #!/usr/bin/env sh -# Read +# Read wallabag articles from the commandline # 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" @@ -102,7 +102,7 @@ while getopts "h?qnorse" opt; do # v) verbose=1 # ;; n) - WALLR_FILTER="new" + WALLR_FILTER="unread" ;; r) WALLR_FILTER="read" diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index 53a6c54..6601117 100644 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc @@ -84,6 +84,6 @@ alt + a : shift + {F1,F2} rofi-bib-due -p{1,3} alt + a : F3 rofi-bib-due - -alt + a : r - alacritty --class floating,floating -e reader -n +# read wallabag articles from the cmdline +alt + a : {r, shift+r} + alacritty --class floating,floating -e wallr {-n,_}