commit 3e4292df9f613a6a78d415eb9e59ef633cbf7a05 parent 88ee147facc8efce23fe48edb3cd7e4707610aca Author: Antoine Amarilli <a3nm@a3nm.net> Date: Sun, 25 Sep 2016 20:45:01 +0200 xpapers Diffstat:
xpapers | | | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/xpapers b/xpapers @@ -0,0 +1,11 @@ +#!/bin/bash + +# open a paper +# my-rofi is just a dmenu wrapper + +set -x + +PAPERS="$HOME/useful/papers/" +RET=$(ls "$PAPERS" | grep '\.pdf$' | sed 's/\.pdf$//' | ~/bin/my-rofi) +exec xdg-open "$PAPERS/$RET.pdf" +