diff options
author | IBNobody <ibnobody@gmail.com> | 2016-09-25 23:36:30 +0200 |
---|---|---|
committer | IBNobody <ibnobody@gmail.com> | 2016-09-25 23:36:30 +0200 |
commit | 24a953ae64adc8e0c26059fbe76088eb65d90d9e (patch) | |
tree | 590591f00a3782b43253a1321220c7652cd9799b /keyboards/ergodox/keymaps/algernon/tools/layer-notify | |
parent | f956802f29aaa3da0d86d56f42986d456bae717b (diff) | |
parent | 67252625165ffa0a08e723a52562a853aa4b496b (diff) | |
download | qmk_firmware-24a953ae64adc8e0c26059fbe76088eb65d90d9e.tar.gz qmk_firmware-24a953ae64adc8e0c26059fbe76088eb65d90d9e.tar.xz |
Merge remote-tracking branch 'refs/remotes/jackhumbert/master'
Diffstat (limited to 'keyboards/ergodox/keymaps/algernon/tools/layer-notify')
-rwxr-xr-x | keyboards/ergodox/keymaps/algernon/tools/layer-notify | 12 |
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 000000000..627c2861e --- /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) |