summaryrefslogtreecommitdiff
path: root/users/riblee
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-11-26 18:36:45 +0000
committerGitHub <noreply@github.com>2023-11-27 05:36:45 +1100
commit1ed03f498fa204178c2696c510ac6a2cd8524e2d (patch)
treeb97c1f983b7e4b57c007d0feedadd3ad3e39062b /users/riblee
parent4908d4b1ca260efecf3613e6517aa3a6f2034876 (diff)
Remove userspace keymaps (#22544)
Diffstat (limited to 'users/riblee')
-rw-r--r--users/riblee/readme.md14
-rw-r--r--users/riblee/riblee.c174
-rw-r--r--users/riblee/riblee.h59
-rw-r--r--users/riblee/rules.mk1
4 files changed, 0 insertions, 248 deletions
diff --git a/users/riblee/readme.md b/users/riblee/readme.md
deleted file mode 100644
index 54f5cc8bb0..0000000000
--- a/users/riblee/readme.md
+++ /dev/null
@@ -1,14 +0,0 @@
-Copyright 2020 Janos Daniel Reibl <janos.daniel.reibl@protonmail.com> @riblee
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
diff --git a/users/riblee/riblee.c b/users/riblee/riblee.c
deleted file mode 100644
index 4be43ba82c..0000000000
--- a/users/riblee/riblee.c
+++ /dev/null
@@ -1,174 +0,0 @@
-/* Copyright 2020 Janos Daniel Reibl <janos.daniel.reibl@protonmail.com> @riblee
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include "riblee.h"
-#include <string.h>
-
-// Tap Dance functions
-void dance_key_a (tap_dance_state_t *state, void *user_data) {
- if (state->count == 1) {
- SEND_STRING("a");
- reset_tap_dance(state);
- } else if (state->count == 2) {
- if (!(keyboard_report->mods & MOD_MASK_SHIFT)) {
- send_unicode_string("á");
- } else {
- send_unicode_string("Á");
- }
-
- reset_tap_dance(state);
- }
-}
-
-void dance_key_e (tap_dance_state_t *state, void *user_data) {
- if (state->count == 1) {
- SEND_STRING("e");
- reset_tap_dance(state);
- } else if (state->count == 2) {
- if (!(keyboard_report->mods & MOD_MASK_SHIFT)) {
- send_unicode_string("é");
- } else {
- send_unicode_string("É");
- }
-
- reset_tap_dance(state);
- }
-}
-
-void dance_key_i (tap_dance_state_t *state, void *user_data) {
- if (state->count == 1) {
- SEND_STRING("i");
- reset_tap_dance(state);
- } else if (state->count == 2) {
- if (!(keyboard_report->mods & MOD_MASK_SHIFT)) {
- send_unicode_string("í");
- } else {
- send_unicode_string("Í");
- }
-
- reset_tap_dance(state);
- }
-}
-
-void dance_key_o (tap_dance_state_t *state, void *user_data) {
- if (state->count == 1) {
- SEND_STRING("o");
- reset_tap_dance(state);
- } else if (state->count == 2) {
- if (!(keyboard_report->mods & MOD_MASK_SHIFT)) {
- send_unicode_string("ó");
- } else {
- send_unicode_string("Ó");
- }
-
- reset_tap_dance(state);
- } else if (state->count == 3) {
- if (!(keyboard_report->mods & MOD_MASK_SHIFT)) {
- send_unicode_string("ö");
- } else {
- send_unicode_string("Ö");
- }
-
- reset_tap_dance(state);
- } else if (state->count == 4) {
- if (!(keyboard_report->mods & MOD_MASK_SHIFT)) {
- send_unicode_string("ő");
- } else {
- send_unicode_string("Ő");
- }
-
- reset_tap_dance(state);
- }
-}
-
-void dance_key_u (tap_dance_state_t *state, void *user_data) {
- if (state->count == 1) {
- SEND_STRING("u");
- reset_tap_dance(state);
- } else if (state->count == 2) {
- if (!(keyboard_report->mods & MOD_MASK_SHIFT)) {
- send_unicode_string("ú");
- } else {
- send_unicode_string("Ú");
- }
-
- reset_tap_dance(state);
- } else if (state->count == 3) {
- if (!(keyboard_report->mods & MOD_MASK_SHIFT)) {
- send_unicode_string("ü");
- } else {
- send_unicode_string("Ü");
- }
-
- reset_tap_dance(state);
- } else if (state->count == 4) {
- if (!(keyboard_report->mods & MOD_MASK_SHIFT)) {
- send_unicode_string("ű");
- } else {
- send_unicode_string("Ű");
- }
-
- reset_tap_dance(state);
- }
-}
-
-layer_state_t layer_state_set_user(layer_state_t state) {
- return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
-}
-
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
- switch (keycode) {
- case QWERTY:
- if (record->event.pressed) {
- set_single_persistent_default_layer(_QWERTY);
- }
- return false;
- break;
- case COLEMAK:
- if (record->event.pressed) {
- set_single_persistent_default_layer(_COLEMAK);
- }
- return false;
- break;
- case DVORAK:
- if (record->event.pressed) {
- set_single_persistent_default_layer(_DVORAK);
- }
- return false;
- break;
- case WORKMAN:
- if (record->event.pressed) {
- set_single_persistent_default_layer(_WORKMAN);
- }
- return false;
- break;
- case HUNGARIAN:
- if (record->event.pressed) {
- set_single_persistent_default_layer(_HUNGARIAN);
- }
- return false;
- break;
- }
- return true;
-};
-
-void keyboard_pre_init_user(void) {
- // Set C13 pin as output
- setPinOutput(C13);
-
- // Turn off the LED
- writePinHigh(C13);
-} \ No newline at end of file
diff --git a/users/riblee/riblee.h b/users/riblee/riblee.h
deleted file mode 100644
index 910c57db69..0000000000
--- a/users/riblee/riblee.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/* Copyright 2020 Janos Daniel Reibl <janos.daniel.reibl@protonmail.com> @riblee
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#pragma once
-
-#include QMK_KEYBOARD_H
-
-enum layer_names {
- _QWERTY,
- _HUNGARIAN,
- _COLEMAK,
- _DVORAK,
- _WORKMAN,
- _LOWER,
- _RAISE,
- _ADJUST
-};
-
-enum custom_keycodes {
- QWERTY = SAFE_RANGE,
- HUNGARIAN,
- COLEMAK,
- DVORAK,
- WORKMAN,
-};
-
-#define LOWER MO(_LOWER)
-#define RAISE MO(_RAISE)
-
-// Tap Dance declarations
-enum {
- TD_A,
- TD_E,
- TD_I,
- TD_O,
- TD_U,
-};
-
-void dance_key_a (tap_dance_state_t *, void *);
-void dance_key_e (tap_dance_state_t *, void *);
-void dance_key_i (tap_dance_state_t *, void *);
-void dance_key_o (tap_dance_state_t *, void *);
-void dance_key_u (tap_dance_state_t *, void *);
-
-layer_state_t layer_state_set_user(layer_state_t);
-bool process_record_user(uint16_t keycode, keyrecord_t *record); \ No newline at end of file
diff --git a/users/riblee/rules.mk b/users/riblee/rules.mk
deleted file mode 100644
index 31c0645d78..0000000000
--- a/users/riblee/rules.mk
+++ /dev/null
@@ -1 +0,0 @@
-SRC += riblee.c \ No newline at end of file