mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2023-02-13 20:55:19 -05:00
Added this dmenu script for launching some stockk trading applications.
This commit is contained in:
parent
ccb45c0cd3
commit
5af896c3f4
1 changed files with 30 additions and 0 deletions
30
.dmenu/dmenu-trading.sh
Executable file
30
.dmenu/dmenu-trading.sh
Executable file
|
@ -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
|
||||
|
Loading…
Add table
Reference in a new issue