summaryrefslogtreecommitdiff
path: root/keyboards/ergodox/keymaps/algernon/tools/layer-notify
diff options
context:
space:
mode:
authorErez Zukerman <bulk@ezuk.org>2016-09-22 21:38:59 -0400
committerGitHub <noreply@github.com>2016-09-22 21:38:59 -0400
commit545f0ca00e817d86486abfd8f5a1ba915ca56309 (patch)
treee56aecf9f3dd221e133dfa269c881c65f3c0040b /keyboards/ergodox/keymaps/algernon/tools/layer-notify
parent0f205a854ff18967acef5a6060efb655b6b77247 (diff)
parent3e128552d92714ff86d4378b4e3acccc62d6f132 (diff)
Merge pull request #760 from algernon/ergodox-ez/algernon
Update the ergodox/algernon keymap to v1.7
Diffstat (limited to 'keyboards/ergodox/keymaps/algernon/tools/layer-notify')
-rwxr-xr-xkeyboards/ergodox/keymaps/algernon/tools/layer-notify12
1 files changed, 12 insertions, 0 deletions
diff --git a/keyboards/ergodox/keymaps/algernon/tools/layer-notify b/keyboards/ergodox/keymaps/algernon/tools/layer-notify
new file mode 100755
index 0000000000..627c2861ef
--- /dev/null
+++ b/keyboards/ergodox/keymaps/algernon/tools/layer-notify
@@ -0,0 +1,12 @@
+#!/bin/sh
+HL="${HID_LISTEN:-$HOME/src/ext/hid_listen/hid_listen}"
+
+sudo "${HL}" | grep --line-buffered LAYER: | \
+(while read line; do
+ case $line in
+ LAYER:*)
+ layer="$(echo $(echo $line | cut -d: -f2-))"
+ notify-send -i mark-location-symbolic "Switched to layer: $layer"
+ ;;
+ esac
+ done)