diff options
author | cbbrowne <cbbrowne@cbbrowne.tor.int-afilias.info> | 2016-09-23 12:05:25 -0400 |
---|---|---|
committer | cbbrowne <cbbrowne@cbbrowne.tor.int-afilias.info> | 2016-09-23 12:05:25 -0400 |
commit | 888bd89ba7f895327162c4ff34655bf21590821e (patch) | |
tree | c90b6d6236aa4e696c475efb3e9548b8549330a6 /keyboards/ergodox/keymaps/algernon/tools/layer-notify | |
parent | 7a183b4e8b88978013797ebd2657ab2e92250423 (diff) | |
parent | ce6a9a6c38a3efb2b3d403d5b3549b2190102cf3 (diff) | |
download | qmk_firmware-888bd89ba7f895327162c4ff34655bf21590821e.tar.gz |
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
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) |