Skip to content

Commit

Permalink
horizon updates for newer qmk versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ardakilic committed Sep 10, 2024
1 parent f8d26bf commit cd47de9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
12 changes: 6 additions & 6 deletions keyboards/horizon/keymaps/ardakilic/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ enum horizon_layers {
#define BACKTICK RALT(KC_BSLS)
#define TILDE RALT(KC_RBRC)
#define NUMBER_SIGN RALT(KC_3)
#define LOCKSCREEN LCTL(LSFT(KC_POWER)) // Screen Lock shortcut for OSX
#define LOCKSCREEN LCTL(LSFT(KC_PWR)) // Screen Lock shortcut for OSX

/*
// Unicode Turkish characters, in case it's needed
Expand Down Expand Up @@ -98,8 +98,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = LAYOUT(
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
LT(_NUMPAD, KC_ESC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
LSFT_T(KC_CAPS), KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MS_BTN1, KC_MS_BTN1, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_SFTENT /*KC_ENT*/,
LT(_SODA, KC_GRV), KC_LCTL, KC_LALT, KC_LGUI, LT(_LOWER, KC_BSLS), LT(_SPACE, KC_SPC), KC_SCRL, KC_MS_BTN2, KC_BSPC, LT(_RAISE, KC_NONUS_BSLASH), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
LSFT_T(KC_CAPS), KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MS_BTN1, KC_MS_BTN1, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, RSFT_T(KC_ENT) /*KC_ENT*/,
LT(_SODA, KC_GRV), KC_LCTL, KC_LALT, KC_LGUI, LT(_LOWER, KC_BSLS), LT(_SPACE, KC_SPC), KC_SCRL, KC_MS_BTN2, KC_BSPC, LT(_RAISE, KC_NONUS_BACKSLASH), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
),

/* Lower
Expand All @@ -117,7 +117,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LBRC, KC_RBRC, KC_EQL,
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_MS_BTN1, KC_MS_BTN1, KC_F12, DOLLAR_SIGN, CURLY_OPEN, CURLY_CLOSE, KC_GRV, LSFT(KC_GRV),
_______, _______, _______, _______, _______, _______, KC_SCRL, KC_MS_BTN2, _______, _______, SQUARE_OPEN, SQUARE_CLOSE, LSFT(KC_2), KC_NONUS_BSLASH
_______, _______, _______, _______, _______, _______, KC_SCRL, KC_MS_BTN2, _______, _______, SQUARE_OPEN, SQUARE_CLOSE, LSFT(KC_2), KC_NONUS_BACKSLASH
),


Expand All @@ -141,7 +141,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

/* Soda Layer. Adjust and other stuff
* ,-------------------------------------------------------------------------------------------------.
* |EepRST| Reset| Debug| | | | | | | Up | | | |
* |EepRST|BotLdr| Debug|Reboot| | | | | | Up | | | |
* |------+------+------+------+------+------+ |------+------+------+------+------+------|
* | | | | | | | | | Left | Down |Right | | Mute |
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
Expand All @@ -151,7 +151,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* `-------------------------------------------------------------------------------------------------'
*/
[_SODA] = LAYOUT(
EEP_RST, RESET, DEBUG, _______, _______, _______, _______, _______, KC_UP, _______, _______, _______,
EE_CLR, QK_BOOT, DB_TOGG, QK_RBT, _______, _______, _______, _______, KC_UP, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_MUTE,
_______, _______, _______, _______, _______, _______, KC_MS_BTN1, KC_MS_BTN1, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY,
_______, _______, _______, _______, _______, _______, KC_SCRL, KC_MS_BTN2, _______, _______, _______, _______, KC_BRMD, KC_BRMU
Expand Down
9 changes: 4 additions & 5 deletions keyboards/horizon/keymaps/ardakilic_trackball/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
// #define MATRIX_ROW_PINS { D3, D2, D1, F4 }
// #define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2, B6, B5, B4, E6, D7, C6, D4, D0 }

// fix macOS Wakeup issue
#define USB_SUSPEND_WAKEUP_DELAY 200

// Enable if you want to
// #define PIMORONI_TRACKBALL_INVERT_X
Expand All @@ -42,17 +44,16 @@

// trackball smoothing start
// https://github.com/qmk/qmk_firmware/blob/master/keyboards/sofle/keymaps/foureight84/config.h
// #define POINTING_DEVICE_TASK_THROTTLE_MS 8
#define POINTING_DEVICE_TASK_THROTTLE_MS 8
// Trackball smoothing end


/*
https://www.reddit.com/r/ErgoMechKeyboards/comments/qx7oqg/how_do_you_get_smoother_mouse_keys_with_qmkvia/
https://www.reddit.com/r/olkb/comments/72u8ou/qmk_mouse_keys_rock/
https://github.com/manna-harbour/miryoku_qmk/blob/bdb9fd81e8aa2afb3882f7c0f6ae2d3ba448ac93/users/manna-harbour_miryoku/config.h#L23-L33
https://github.com/qmk/qmk_firmware/blob/master/keyboards/draculad/keymaps/pimoroni/keymap.c
*/
// Mouse key speed and acceleration.
#undef MOUSEKEY_DELAY
#define MOUSEKEY_DELAY 0
Expand All @@ -64,5 +65,3 @@
#define MOUSEKEY_MAX_SPEED 6
#undef MOUSEKEY_TIME_TO_MAX
#define MOUSEKEY_TIME_TO_MAX 64
*/
12 changes: 6 additions & 6 deletions keyboards/horizon/keymaps/ardakilic_trackball/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ enum horizon_layers {
#define BACKTICK RALT(KC_BSLS)
#define TILDE RALT(KC_RBRC)
#define NUMBER_SIGN RALT(KC_3)
#define LOCKSCREEN LCTL(LSFT(KC_POWER)) // Screen Lock shortcut for OSX
#define LOCKSCREEN LCTL(LSFT(KC_PWR)) // Screen Lock shortcut for OSX

/*
// Unicode Turkish characters, in case it's needed
Expand Down Expand Up @@ -194,8 +194,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = LAYOUT(
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
LT(_NUMPAD, KC_ESC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
LSFT_T(KC_CAPS), KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MS_BTN1, KC_MS_BTN1, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_SFTENT /*KC_ENT*/,
LT(_SODA, KC_GRV), KC_LCTL, KC_LALT, KC_LGUI, LT(_LOWER, KC_BSLS), LT(_SPACE, KC_SPC), BALL_SCR, KC_MS_BTN2, KC_BSPC, LT(_RAISE, KC_NONUS_BSLASH), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
LSFT_T(KC_CAPS), KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MS_BTN1, KC_MS_BTN1, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, RSFT_T(KC_ENT) /*KC_ENT*/,
LT(_SODA, KC_GRV), KC_LCTL, KC_LALT, KC_LGUI, LT(_LOWER, KC_BSLS), LT(_SPACE, KC_SPC), BALL_SCR, KC_MS_BTN2, KC_BSPC, LT(_RAISE, KC_NONUS_BACKSLASH), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
),

/* Lower
Expand All @@ -213,7 +213,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LBRC, KC_RBRC, KC_EQL,
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_MS_BTN1, KC_MS_BTN1, KC_F12, DOLLAR_SIGN, CURLY_OPEN, CURLY_CLOSE, KC_GRV, LSFT(KC_GRV),
_______, _______, _______, _______, _______, _______, BALL_SCR, KC_MS_BTN2, _______, _______, SQUARE_OPEN, SQUARE_CLOSE, LSFT(KC_2), KC_NONUS_BSLASH
_______, _______, _______, _______, _______, _______, BALL_SCR, KC_MS_BTN2, _______, _______, SQUARE_OPEN, SQUARE_CLOSE, LSFT(KC_2), KC_NONUS_BACKSLASH
),


Expand All @@ -237,7 +237,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

/* Soda Layer. Adjust and other stuff
* ,-------------------------------------------------------------------------------------------------.
* |EepRST| Reset| Debug| | | | TRACK | | | Up | | | |
* |EepRST|BOTLDR| Debug|Reboot| | | TRACK | | | Up | | | |
* |------+------+------+------+------+------+ BALL |------+------+------+------+------+------|
* | | | | | | | | | Left | Down |Right | | Mute |
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
Expand All @@ -247,7 +247,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* `-------------------------------------------------------------------------------------------------'
*/
[_SODA] = LAYOUT(
EEP_RST, RESET, DEBUG, _______, _______, _______, _______, _______, KC_UP, _______, _______, _______,
EE_CLR, QK_BOOT, DB_TOGG, QK_RBT, _______, _______, _______, _______, KC_UP, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_MUTE,
_______, _______, _______, _______, _______, _______, KC_MS_BTN1, KC_MS_BTN1, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY,
_______, _______, _______, _______, _______, _______, BALL_SCR, KC_MS_BTN2, _______, _______, _______, _______, KC_BRMD, KC_BRMU
Expand Down

0 comments on commit cd47de9

Please sign in to comment.