all repos — dotfiles @ 19d5fede9251bc9509bf6a325dc8146ac3a28020

linux dotfiles

add two new scripts
prithugoswami prithugoswami524@gmail.com
Fri, 19 Apr 2019 21:39:28 +0530
commit

19d5fede9251bc9509bf6a325dc8146ac3a28020

parent

048450b0d5785e8ee051a6178d03d2570208b13b

2 files changed, 23 insertions(+), 0 deletions(-)

jump to
A bin/scripts/define

@@ -0,0 +1,6 @@

+#!/usr/bin/bash +# usage $./define word +# will return the meaning of the word in a json format + +URL="https://googledictionaryapi.eu-gb.mybluemix.net/?define="$1"&lang=en" +curl -s $URL | jq '.[]|del(.pronunciation)'
A bin/scripts/notes_scrot

@@ -0,0 +1,17 @@

+#!/usr/bin/bash +# Wrote this to be able to take a selective-area screenshot for my note-taking +# workflow +# Screenshots are saved in the respective img/ directory of each +# subject/course/book directory under ~/Documents/notes/ +# This is so that I can use those images in markdown while writing notes +# and compile them using pandoc. Useful to take screenshots of diagrams +# from book that I am reading. + +#nip - Notes images paths for notes in ~/Documents/notes +paths=$(cat /home/prithu/.config/nip) + +path=$(echo $paths | dmenu -l 15) +[[ -z $path ]] && exit 0 +img_name=$(echo -n '' | dmenu -p "image name") +[[ -z $img_name ]] && exit 0 +scrot -s "$path/$img_name.png" && notify-send "saved $path/$img_name.png"