aboutsummaryrefslogtreecommitdiff
path: root/dynamic_keybind.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dynamic_keybind.sh')
-rwxr-xr-xdynamic_keybind.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/dynamic_keybind.sh b/dynamic_keybind.sh
new file mode 100755
index 0000000..242c3bc
--- /dev/null
+++ b/dynamic_keybind.sh
@@ -0,0 +1,7 @@
+if [ ! -f $HOME/.hotkeyrc ]; then
+ echo "no ~/.hotkeyrc found"
+ exit;
+fi;
+v=0
+`while read $i; do echo $v" "$i; v=$(($v+1));done < $HOME/.hotkeyrc | dmenu -l 5 | sed 's/^[0-9] //g'`
+