diff options
author | dbroqua <dbroqua@mousur.org> | 2016-10-14 21:53:37 +0200 |
---|---|---|
committer | dbroqua <dbroqua@mousur.org> | 2016-10-14 21:53:37 +0200 |
commit | 28ca1f5345f665e262e8f5af88ac166afcd35add (patch) | |
tree | 608b09db4b9a09012d558e8352768b690900d407 /keyboards/ergodox/keymaps/algernon/tools/hid-commands | |
parent | 0320fbf6f4c3c6d079226bc49c7b4d3a3906f5d7 (diff) | |
parent | 2098b363eac81298ca51edc06970a767d991c78c (diff) | |
download | qmk_firmware-28ca1f5345f665e262e8f5af88ac166afcd35add.tar.gz qmk_firmware-28ca1f5345f665e262e8f5af88ac166afcd35add.zip |
Merge branch 'master' of https://github.com/Dbroqua/qmk_firmware
Diffstat (limited to 'keyboards/ergodox/keymaps/algernon/tools/hid-commands')
-rwxr-xr-x | keyboards/ergodox/keymaps/algernon/tools/hid-commands | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/keyboards/ergodox/keymaps/algernon/tools/hid-commands b/keyboards/ergodox/keymaps/algernon/tools/hid-commands index f3b83cf6d1..2a6710be4a 100755 --- a/keyboards/ergodox/keymaps/algernon/tools/hid-commands +++ b/keyboards/ergodox/keymaps/algernon/tools/hid-commands @@ -1,6 +1,8 @@ #!/bin/bash set -e +LAST_APPSEL_START=0 + cmd_wm () { WIN="$(xdotool getactivewindow)" wmctrl -i -r ${WIN} -b remove,maximized_vert,maximized_horz @@ -34,6 +36,16 @@ cmd_appsel_chrome () { _cmd_appsel chromium } +cmd_appsel_start () { + APPSEL_START=$(date +%s) + if [ $APPSEL_START -lt $(expr $LAST_APPSEL_START + 10) ]; then + return + fi + LAST_APPSEL_START=$APPSEL_START + notify-send -t 1000 "Please select an application!" -c device -u low \ + -i /usr/share/icons/Adwaita/24x24/devices/video-display.png +} + cmd_help () { cat <<EOF Use the source, Luke! |