mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

xpapers (213B)


      1 #!/bin/bash
      2 
      3 # open a paper
      4 # my-rofi is just a dmenu wrapper
      5 
      6 set -x
      7 
      8 PAPERS="$HOME/useful/papers/"
      9 RET=$(ls "$PAPERS" | grep '\.pdf$' | sed 's/\.pdf$//' | ~/bin/my-rofi -dmenu)
     10 exec xdg-open "$PAPERS/$RET.pdf"
     11