all repos — dotfiles @ 048f69747b918284ff7856135fec4dc59c4a0cdd

linux dotfiles

udpate scritps

get-ep-walls
note
Prithu Goswami prithugoswami524@gmail.com
Fri, 27 Dec 2019 10:21:45 +0530
commit

048f69747b918284ff7856135fec4dc59c4a0cdd

parent

d3a9ccfea1adf289828b08ca9d2840397105e516

2 files changed, 4 insertions(+), 5 deletions(-)

jump to
M bin/scripts/get-ep-wallsbin/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/notebin/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