dgy
/
hexagons
Archived
1
0
Fork 0
This repository has been archived on 2021-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
hexagons/.local/bin/tutos

15 lines
239 B
Bash
Executable File

#!/usr/bin/env bash
set -euf -o pipefail
MAINDIR="$HOME/vid/Learning/"
cd "$MAINDIR"
SEL=$(fd -d 1 'ztm' | dmenu -p "Tuto ")
cd "$MAINDIR/$SEL"
PLAY=$(fd -d 1 | dmenu -p "Play ")
if [[ $PLAY == "" ]]; then
exit 0
else
mpv "$PLAY"
fi