From 72225befa2261f7364a6b74ce0e3905780169e27 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Sun, 15 Dec 2019 10:53:05 +0100 Subject: [PATCH] Add readnotes script --- dotfiles/binaries.org | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/dotfiles/binaries.org b/dotfiles/binaries.org index 8581530..c48a2d5 100644 --- a/dotfiles/binaries.org +++ b/dotfiles/binaries.org @@ -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: