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" :header-args+: :shebang "#!/usr/bin/env bash"
:END: :END:
#+begin_src bash #+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 #+end_src
* askpass * askpass
@ -569,7 +579,7 @@ The sed piece just removes the colon from the provided prompt: =rofi -p= already
:END: :END:
#+begin_src bash #+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 if [ -z "$status" ]; then
exit; exit;
fi fi
@ -582,6 +592,8 @@ The sed piece just removes the colon from the provided prompt: =rofi -p= already
case "$status" in case "$status" in
"All") "All")
maim ~/Pictures/$name.png ;; maim ~/Pictures/$name.png ;;
"GUI")
flameshot gui -r > ~/Pictures/$name.png ;;
"Selection") "Selection")
maim -s ~/Pictures/$name.png ;; maim -s ~/Pictures/$name.png ;;
"Cropped") "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 ;; maim -i $(xdotool getactivewindow) ~/Pictures/$name.png ;;
esac esac
#+end_src #+end_src
<<<<<<< Updated upstream
* Remote Desktop Connect * Remote Desktop Connect
:PROPERTIES: :PROPERTIES: