add: some basic tools
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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
Binary file not shown.
Reference in New Issue
Block a user