Skip to content

Instantly share code, notes, and snippets.

View rootiest's full-sized avatar
:octocat:
Printing printers

Rootiest rootiest

:octocat:
Printing printers
View GitHub Profile
bool encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) { /* First encoder */
switch (biton32(layer_state)) {
case 0:
if ((get_mods() & MOD_MASK_SHIFT)) { // Shifted
const uint8_t _real_mods = get_mods();
unregister_code16(KC_LSFT);
unregister_code16(KC_RSFT);
if (clockwise) {
tap_code16(KC_WH_D);
@rootiest
rootiest / numpad_layout.c
Last active May 28, 2021 15:51
My QMK NumPad layout
[_NUMPD] = LAYOUT_planck_1x2uC(KC_ESC, KC_HOME, KC_UP, KC_END, KC_PERC, KC_LCBR, KC_RCBR, KC_TAB, KC_P7, KC_P8, KC_P9, KC_BSPC, //
KC_TILD, KC_LEFT, KC_DOWN, KC_RGHT, KC_BSLS, KC_LBRC, KC_RBRC, KC_PSLS, KC_P4, KC_P5, KC_P6, KC_PMNS, //
KC_LSFT, KC_SLSH, LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), KC_LT, KC_GT, KC_PAST, KC_P1, KC_P2, KC_P3, KC_PPLS, //
TO(0), KC_LEAD, KC_LGUI, KC_LALT, KC_LCPO, KC_SPC, KC_RCPC, KC_HASH, KC_P0, KC_PDOT, KC_PENT),
/*
Numpad Layer [7]
* ,-----------------------------------------------------------------------------------.
* | Esc | Home | Up | End | % | { | } | Tab | 7 | 8 | 9 |BckSpc|
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | ~ | Left | Down | Right| \ | [ | ] | / | 4 | 5 | 6 | - |

Keybase proof

I hereby claim:

  • I am rootiest on github.
  • I am rootiest (https://keybase.io/rootiest) on keybase.
  • I have a public key ASCbm5p6MEjNoJE_JSM2rbXD_0tBwlUAzPVlRcOU5pGm0wo

To claim this, I am signing this object:

@rootiest
rootiest / keybase.md
Created September 10, 2019 04:12
keybase.md

Keybase proof

I hereby claim:

  • I am boogiemobile on github.
  • I am boogiemobile (https://keybase.io/boogiemobile) on keybase.
  • I have a public key ASCQyQH2DsXJ63-3aos1X_FHVXRBdSDeVt1-rFKEHTk28go

To claim this, I am signing this object: