summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornic <ra@afu.re>2024-01-14 12:39:31 -0500
committernic <ra@afu.re>2024-01-14 12:39:31 -0500
commit1fc3b2cbbf3a8bf13bd169a50bf961eb63594d84 (patch)
tree4b7ef04be9a93ff8a7966fa68c015b38ff4b29ee
parente081b9a6ec2f008e6c5b5b2395335dc3277a70a9 (diff)
dmenu script for choosing excel sheets
-rwxr-xr-x.local/bin/dmenuexcel18
1 files changed, 18 insertions, 0 deletions
diff --git a/.local/bin/dmenuexcel b/.local/bin/dmenuexcel
new file mode 100755
index 0000000..5901584
--- /dev/null
+++ b/.local/bin/dmenuexcel
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+trinity(){
+case "$(printf "Watchlist\\nIdeas\\nKelly" | dmenu -l 3 -i -p "Select excel file")" in
+ "Watchlist") exec "/opt/cxoffice/bin/wine" --bottle "Microsoft_Excel_2007" --check --wait-children --start "C:/users/crossover/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Microsoft Office/Microsoft Office Excel 2007.lnk" ~/anat/books/watchlist.xlsx ;;
+ "Ideas") exec "/opt/cxoffice/bin/wine" --bottle "Microsoft_Excel_2007" --check --wait-children --start "C:/users/crossover/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Microsoft Office/Microsoft Office Excel 2007.lnk" ~/anat/books/ideas.xlsx ;;
+ "Kelly") exec "/opt/cxoffice/bin/wine" --bottle "Microsoft_Excel_2007" --check --wait-children --start "C:/users/crossover/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Microsoft Office/Microsoft Office Excel 2007.lnk" ~/anat/books/kelly.xlsx ;;
+esac ;}
+
+#tools(){
+#case "$(printf "VIX\\nMargin\\nReaction" | dmenu -l 3 -i -p "Select xl sheet")" in
+# "VIX") excel ~/Trading/VIX_implied_SP500_move.xlsx ;;
+# "Margin") excel ~/Trading/exposure_margin.xlsx ;;
+# "Reaction") excel ~/Trading/economic_and_asset_reaction.xlsx ;;
+#esac ;}
+
+trinity # better exec ?
+#tools