summaryrefslogtreecommitdiff
path: root/keyboards/ergodox/keymaps/algernon/tools/hid-commands
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ergodox/keymaps/algernon/tools/hid-commands')
-rwxr-xr-xkeyboards/ergodox/keymaps/algernon/tools/hid-commands12
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!