diff options
author | Damien <Dbroqua@users.noreply.github.com> | 2016-10-07 22:27:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-07 22:27:36 +0200 |
commit | 811257a0c8a20a7bf5481f745a083f7e7f01342c (patch) | |
tree | 6d79874c5542148c27907511ecdb2e9e5e12b24b /keyboards/ergodox/keymaps/algernon/tools/hid-commands | |
parent | 6a090c5df7e52df084de975f070841af1138b5a4 (diff) | |
parent | a9df99b81c787862dc3fa11bd854fe39e704da81 (diff) |
Merge pull request #8 from jackhumbert/master
Merge from jackhumbert
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! |