From 5af896c3f46d7fd2773acba72a2ee86440e5bb60 Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Sat, 7 Sep 2019 19:31:39 -0500 Subject: [PATCH] Added this dmenu script for launching some stockk trading applications. --- .dmenu/dmenu-trading.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 .dmenu/dmenu-trading.sh diff --git a/.dmenu/dmenu-trading.sh b/.dmenu/dmenu-trading.sh new file mode 100755 index 0000000..8f3b9ef --- /dev/null +++ b/.dmenu/dmenu-trading.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# ____ _____ +# | _ \_ _| Derek Taylor (DistroTube) +# | | | || | http://www.youtube.com/c/DistroTube +# | |_| || | http://www.gitlab.com/dwt1/ +# |____/ |_| +# +# Dmenu script for launching trading programs. + + +declare -a options=(" tastyworks + tastytrade + thinkorswim + quit ") + +choice=$(echo -e "${options[@]}" | dmenu -l -i -p 'System monitors: ') + + if [ "$choice" == ' quit ' ]; then + echo "Program terminated." + fi + if [ "$choice" == ' tastyworks ' ]; then + exec /opt/tastyworks/tastyworks + fi + if [ "$choice" == ' tastytrade ' ]; then + exec firefox tastytrade.com + fi + if [ "$choice" == ' thinkorswim ' ]; then + exec /home/dt/thinkorswim/thinkorswim + fi +