Add readnotes script

This commit is contained in:
Thomas Dehaeze 2019-12-15 10:53:05 +01:00
parent 92347f518d
commit 72225befa2

View File

@ -505,7 +505,17 @@ mode=bookmarks main
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
cd ~/MEGA/These/Ressources/pdfs/ && ls | dmenu -l 20 | xargs -I {} zathura {}
cd ~/Cloud/thesis/ressources/pdfs/ && ls | dmenu -l 20 | xargs -I {} zathura {}
#+end_src
* readnotes
:PROPERTIES:
:header-args: :tangle ~/bin/readnotes
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
cd ~/Cloud/thesis/ressources/notes/ && ls *.pdf | dmenu -l 20 | xargs -I {} zathura {}
#+end_src
* askpass
@ -569,7 +579,7 @@ The sed piece just removes the colon from the provided prompt: =rofi -p= already
:END:
#+begin_src bash
status=$(echo -e "All\nSelection\nCropped\nCopy\nShadow\nActive" | rofi -i -dmenu -p "Type")
status=$(echo -e "All\nGUI\nSelection\nCropped\nCopy\nShadow\nActive" | rofi -i -dmenu -p "Type")
if [ -z "$status" ]; then
exit;
fi
@ -582,6 +592,8 @@ The sed piece just removes the colon from the provided prompt: =rofi -p= already
case "$status" in
"All")
maim ~/Pictures/$name.png ;;
"GUI")
flameshot gui -r > ~/Pictures/$name.png ;;
"Selection")
maim -s ~/Pictures/$name.png ;;
"Cropped")
@ -594,7 +606,6 @@ The sed piece just removes the colon from the provided prompt: =rofi -p= already
maim -i $(xdotool getactivewindow) ~/Pictures/$name.png ;;
esac
#+end_src
<<<<<<< Updated upstream
* Remote Desktop Connect
:PROPERTIES: