udpate scritps get-ep-walls note
Prithu Goswami prithugoswami524@gmail.com
Fri, 27 Dec 2019 10:21:45 +0530
2 files changed,
4 insertions(+),
5 deletions(-)
M
bin/scripts/get-ep-walls
→
bin/scripts/get-ep-walls
@@ -3,10 +3,9 @@ epdir="$HOME/pictures/ep"
if [ -d $epdir ] then cd "$epdir" - wget reddit.com/r/earthporn.json || exit - cat earthporn.json | jq '.data.children[] .data.url' | tr -d '"' |\ - grep -E "jpg|png$" | xargs wget - rm *json + wget -O - --quiet reddit.com/r/earthporn.json cat earthporn.json |\ + jq '.data.children[] .data.url' | tr -d '"' | grep -E "jpg|png$" |\ + xargs wget else printf "$epdir doesn't exist\n" exit
M
bin/scripts/note
→
bin/scripts/note
@@ -11,7 +11,7 @@ [ $? -ne 0 ] && exit;
fi case $output in - +) echo -n "" | $dmenu_cmd -p note >> $remind_path;; + add) echo -n "" | $dmenu_cmd -p "add note " >> $remind_path;; *) ans=$(echo -e "no\nyes" | $dmenu_cmd -p "Delete?") if [ $ans = "yes" ]; then sed -i "/$output/d" $remind_path