add: some basic tools

This commit is contained in:
Charles
2024-12-07 13:09:35 -08:00
commit a447db7115
9 changed files with 33 additions and 0 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Executable
+33
View File
@@ -0,0 +1,33 @@
#!/bin/bash
PS3="Action: "
files() {
OIFS="$IFS"
IFS=$'\n'
PS3_OLD=$PS3
PS3="Load file: "
select file in $(ls assets/); do
zathura "assets/$file" &> /dev/null &
done
PS3=$PS3_OLD
IFS="$OIFS"
}
select action in "Files" "TTY" "Dice"; do
case $action in
"Dice")
echo "Usage: 1d8+d8+6d10+10"
./rust-roller
;;
"TTY")
minicom -D /dev/ttyACM0 -b 57600
;;
"Files")
files
;;
*)
echo "Not implemented"
;;
esac
done
Executable
BIN
View File
Binary file not shown.