In windows, hold alt-tab, then tap tab until the program that you want is selected. Very painless affair.

Since I got a Mac at my workplace. I was shown a new way, an annoying way, of window management.

Mac Windows Management 101

When you minimize a window with the yellow button at the top left, you hide your app. Simple enough.

Now when you want to open that window again, you might think holding cmd-tab, and tapping tab would get you the app on your screen.

BUT NO.

Now you have to drag you hand to the mouse and move it to the dock, and click the app icon....

To get the app window reopen with the tab switcher, you need to follow these steps.

  • Hold Cmd
  • Tap Tab till you get to your desired app
  • Hold Alt
  • Release Cmd
  • Release Alt

You might be getting this feeling that I don't like this very much, by the fact that I made a post about it.

You will be damn right.

When I got my split keyboard working, I got writing some C code to simplify this ordeal. If you are suffering from this pain and need a fix, look no further.

This does need a Keyboard running QMK tho.

#include QMK_KEYBOARD_H
#ifndef KEYMAP_PRE_CUSTOM
#define KEYMAP_PRE_CUSTOM
uint16_t cmd_tab_timer = 16960;
uint16_t cmd_tab_wait_delay = 700;
bool in_state = false;
enum custom_keycodes {
SWITCH_APPS = SAFE_RANGE,
};
void switch_apps(void) {
register_code(KC_LGUI);
tap_code(KC_TAB);
register_code(KC_LALT);
unregister_code(KC_LGUI);
unregister_code(KC_LALT);
}
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case SWITCH_APPS:
if (record->event.pressed) {
if (in_state ) {
cmd_tab_wait_delay = 400;
tap_code(KC_TAB);
} else {
in_state = true;
cmd_tab_wait_delay = 900;
register_code(KC_LGUI);
tap_code(KC_TAB);
}
cmd_tab_timer = timer_read();
}
break;
}
return true;
}
void matrix_scan_user(void) {
if ( in_state && timer_read() - cmd_tab_timer > cmd_tab_wait_delay) {
in_state = false;
register_code(KC_LALT);
unregister_code(KC_LGUI);
unregister_code(KC_LALT);
}
}
#endif
view raw keymap-pre.c hosted with ❤ by GitHub

Related Posts

Leave a Reply

%d bloggers like this: