summarylogtreecommitdiffstats
path: root/macroPrompt.sh
diff options
context:
space:
mode:
authorStephen Martin2015-06-08 10:51:44 -0500
committerStephen Martin2015-06-08 10:51:44 -0500
commitdf800f2c82bec4972384c17d76f653c41c5ca719 (patch)
treede89d0de0f54392e95d07e777983e311e25bb84c /macroPrompt.sh
downloadaur-razer-blackwidow-macro-scripts.tar.gz
Updated to aur4
Diffstat (limited to 'macroPrompt.sh')
-rwxr-xr-xmacroPrompt.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/macroPrompt.sh b/macroPrompt.sh
new file mode 100755
index 00000000000..ca76fc23354
--- /dev/null
+++ b/macroPrompt.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+macroDir=~/.config/xmacro
+if [ ! -d ${macroDir} ];then
+ mkdir -p ${macrodir}
+fi
+
+echo "Which macro button should this be assigned to? [1-5]"
+read macroNumber
+
+fileName=macro${macroNumber}.rec
+
+xmacrorec2 -o ${macroDir}/${fileName}
+
+