aboutsummaryrefslogtreecommitdiff
path: root/dynamic_keybind.sh
diff options
context:
space:
mode:
authorCalvin <calvin@bastille>2014-02-23 15:41:35 -0500
committerCalvin <calvin@bastille>2014-02-23 15:41:35 -0500
commitdc0222175d99a7b156c6047e6988e8805bb2e14d (patch)
treebcb6ac30cd2f732dd22832f203eecbc437a23fc1 /dynamic_keybind.sh
parentd500577952549c68ac778e7cc58328c616ee99f9 (diff)
update readme and fix warning
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'`
+