From 1ed03f498fa204178c2696c510ac6a2cd8524e2d Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Sun, 26 Nov 2023 18:36:45 +0000 Subject: Remove userspace keymaps (#22544) --- users/sigul/sigul.c | 100 ---------------------------------------------------- 1 file changed, 100 deletions(-) delete mode 100644 users/sigul/sigul.c (limited to 'users/sigul/sigul.c') diff --git a/users/sigul/sigul.c b/users/sigul/sigul.c deleted file mode 100644 index c9793ebb1f..0000000000 --- a/users/sigul/sigul.c +++ /dev/null @@ -1,100 +0,0 @@ -#include "keymap_italian_mac_ansi.h" -#include "sigul.h" - -__attribute__ ((weak)) -layer_state_t layer_state_set_keymap (layer_state_t state) { - return state; -} - -layer_state_t layer_state_set_user(layer_state_t state) { - return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); -} - -__attribute__ ((weak)) -bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { - return true; -} - -__attribute__ ((weak)) -bool process_record_secrets(uint16_t keycode, keyrecord_t *record) { - return true; -} - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - - case IT_SCCL: - if (record->event.pressed){ - if (get_mods() & MOD_BIT(KC_LSFT) || get_mods() & MOD_BIT(KC_RIGHT_SHIFT)){ - register_code16(IT_COLN); - } else { - register_code16(IT_SCLN); - } - } else { - unregister_code16(IT_COLN); - unregister_code16(IT_SCLN); - } - return false; - break; - - case IT_APDQ: - if (record->event.pressed){ - if (get_mods() & MOD_BIT(KC_LSFT) || get_mods() & MOD_BIT(KC_RIGHT_SHIFT)){ - register_code16(IT_DQUO); - } else { - register_code16(IT_QUOT); - } - } else { - unregister_code16(IT_DQUO); - unregister_code16(IT_QUOT); - } - return false; - break; - - case IT_CMLS: - if (record->event.pressed){ - if (get_mods() & MOD_BIT(KC_LSFT) || get_mods() & MOD_BIT(KC_RIGHT_SHIFT)){ - unregister_code16(KC_LSFT); - register_code16(IT_LABK); - register_code16(KC_LSFT); - } else { - register_code16(IT_COMM); - } - } else { - unregister_code16(IT_LABK); - unregister_code16(IT_COMM); - } - return false; - break; - - case IT_DTMR: - if (record->event.pressed){ - if (get_mods() & MOD_BIT(KC_LSFT) || get_mods() & MOD_BIT(KC_RIGHT_SHIFT)){ - register_code16(IT_RABK); - } else { - register_code16(IT_DOT); - } - } else { - unregister_code16(IT_RABK); - unregister_code16(IT_DOT); - } - return false; - break; - - case IT_SLQS: - if (record->event.pressed){ - if (get_mods() & MOD_BIT(KC_LSFT) || get_mods() & MOD_BIT(KC_RIGHT_SHIFT)){ - register_code16(IT_QUES); - } else { - register_code16(IT_SLSH); - } - } else { - unregister_code16(IT_QUES); - unregister_code16(IT_SLSH); - } - return false; - break; - } - return process_record_keymap(keycode, record) && process_record_secrets(keycode, record); -}; - -- cgit v1.2.3