tutorial vids script robustness

This commit is contained in:
Luke Smith 2018-08-03 16:51:22 -04:00
parent 6c8a9f76ac
commit be86d72beb
2 changed files with 4 additions and 3 deletions

View file

@ -1,4 +1,4 @@
status_bar https://www.youtube.com/watch?v=gKumet6b-WY
status bar https://www.youtube.com/watch?v=gKumet6b-WY
feh
i3
mutt https://www.youtube.com/watch?v=2U3vRbF7v5A
@ -6,5 +6,6 @@ ncmpcpp https://www.youtube.com/watch?v=sZIEdI9TS2U
newsboat https://www.youtube.com/watch?v=dUFCRqs822w
ranger https://www.youtube.com/watch?v=L6Vu7WPkoJo
zathura
gpg_keys https://www.youtube.com/watch?v=DMGIlj7u7Eo
gpg keys https://www.youtube.com/watch?v=DMGIlj7u7Eo
calcurse https://www.youtube.com/watch?v=hvc-pHjbhdE
urlview https://www.youtube.com/watch?v=IgzpAjFgbCw

View file

@ -1,3 +1,3 @@
#!/bin/sh
mpv $(grep -P "^$(cat ~/.larbs/tutorialvids | grep https | awk '{print $1}' | dmenu -i -p "Learn about what? (ESC to cancel)" -l 5)\t" ~/.larbs/tutorialvids | awk '{print $2}')
mpv $(grep -P "^$(grep https: ~/.larbs/tutorialvids | sed 's/\t.*//g' | dmenu -i -p "Learn about what? (ESC to cancel)" -l 5)\t" ~/.larbs/tutorialvids | sed 's/.*\t//')