diff options
author | Gergely Nagy <algernon@madhouse-project.org> | 2017-10-01 15:37:41 +0200 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-10-03 07:54:56 -1000 |
commit | 1cd336dde4dad00864cfef643c501e2a32704426 (patch) | |
tree | d176c4af27b93310680afe207d46199867b8d0e9 /layouts/community/ergodox/algernon/tools | |
parent | cc52ac5b1634f61c8333bb653be0bc3d0a3c3da6 (diff) | |
download | qmk_firmware-1cd336dde4dad00864cfef643c501e2a32704426.tar.gz qmk_firmware-1cd336dde4dad00864cfef643c501e2a32704426.zip |
ergodox: Update algernon's layout to v1.11
Overall changes
===============
* Updated to work with QMK master.
* The `$` and `^` symbols on the number row were swapped on both the base and
the ADORE layers.
* The bracket tap-dance keys can now be used to input Japanese brackets, `「`
and `」` with a third tap.
* The second column of the top row on the right side will act as a "Social"
application selector on the `AppSel` layer.
* The third key on the same column will select a password manager.
* The `GUI` key will now launch `rofi` when triple-tapped.
Miscellaneous
=============
* The `👶` symbol can be entered with UCIS.
* The `👪` symbol can be entered with UCIS.
Tools
=====
* `tools/hid-commands` can now find the `Mstdn`, not just `Slack`, as the
"Slack"/chat app.
* `tools/hid-commands` can now find the Plex web app as a music/media player.
* `tools/hid-commands` now understands the "Social" application selector. It
raises the `Mstdn` and `Tweetdeck` windows, but keeps focus on the previous
window.
* `tools/hid-commands` now understands the "Social2" application selector, which
raises `Signal` and `Viber`, but keeps focus on the previous window.
* `tools/hid-commands` is now able to select a password manager (KeePass*).
* `tools/hid-commands` can now run `rofi` when receiving an `appsel_helper`
command (triggered by a triple-tapped `GUI` key).
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Diffstat (limited to 'layouts/community/ergodox/algernon/tools')
-rwxr-xr-x[-rw-r--r--] | layouts/community/ergodox/algernon/tools/hid-commands | 39 | ||||
-rwxr-xr-x[-rw-r--r--] | layouts/community/ergodox/algernon/tools/log-to-heatmap.py | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | layouts/community/ergodox/algernon/tools/text-to-log.py | 0 |
3 files changed, 36 insertions, 3 deletions
diff --git a/layouts/community/ergodox/algernon/tools/hid-commands b/layouts/community/ergodox/algernon/tools/hid-commands index 54ca7556ab..86bff2978e 100644..100755 --- a/layouts/community/ergodox/algernon/tools/hid-commands +++ b/layouts/community/ergodox/algernon/tools/hid-commands @@ -10,6 +10,10 @@ cmd_wm () { wmctrl -i -r ${WIN} -b add,maximized_vert,maximized_horz } +cmd_appsel_helper () { + rofi -show window +} + _cmd_appsel () { wmctrl -x -a $1 || true xdotool key Escape @@ -17,12 +21,14 @@ _cmd_appsel () { cmd_appsel_music () { wmctrl -x -a rhythmbox || wmctrl -x -a spotify || \ - wmctrl -x -a banshee || wmctrl -x -a kodi || true + wmctrl -x -a banshee || wmctrl -x -a kodi || \ + wmctrl -x -a plex || true xdotool key Escape } cmd_appsel_slack () { - _cmd_appsel slack + wmctrl -x -a slack || wmctrl -x -a Mstdn || true + xdotool key Escape } cmd_appsel_emacs () { @@ -34,7 +40,8 @@ cmd_appsel_term () { } cmd_appsel_chrome () { - _cmd_appsel chrom + wmctrl -x -a chrom || wmctrl -x -a Chrome || true + xdotool key Escape } cmd_appsel_start () { @@ -51,6 +58,32 @@ cmd_appsel_start () { -i /usr/share/icons/Adwaita/24x24/devices/video-display.png } +cmd_appsel_social () { + # Save the current window + a=$(xdotool getactivewindow) + # Raise & Focus Mstdn & Tweetdeck + wmctrl -x -a trunk.mad-scientist.club.Google-chrome || true; wmctrl -x -a tweetdeck || true + # Focus the previously active window + xdotool windowfocus $a || true; xdotool windowactivate $a || true + + xdotool key Escape +} + +cmd_appsel_social2 () { + # Save the current window + a=$(xdotool getactivewindow) + # Raise & Focus Viber & Signal + wmctrl -x -a Viber || true; wmctrl -a Signal || true + # Focus the previously active window + xdotool windowfocus $a || true; xdotool windowactivate $a || true + + xdotool key Escape +} + +cmd_appsel_pwmgr () { + _cmd_appsel keepass +} + cmd_reflash () { teensy_loader_cli -v -w ~/src/ext/qmk_firmware/algernon.hex --mcu atmega32u4 || true } diff --git a/layouts/community/ergodox/algernon/tools/log-to-heatmap.py b/layouts/community/ergodox/algernon/tools/log-to-heatmap.py index e927e0e39d..e927e0e39d 100644..100755 --- a/layouts/community/ergodox/algernon/tools/log-to-heatmap.py +++ b/layouts/community/ergodox/algernon/tools/log-to-heatmap.py diff --git a/layouts/community/ergodox/algernon/tools/text-to-log.py b/layouts/community/ergodox/algernon/tools/text-to-log.py index f080c32cd0..f080c32cd0 100644..100755 --- a/layouts/community/ergodox/algernon/tools/text-to-log.py +++ b/layouts/community/ergodox/algernon/tools/text-to-log.py |