aboutsummaryrefslogtreecommitdiff
path: root/users/sigul
diff options
context:
space:
mode:
Diffstat (limited to 'users/sigul')
-rw-r--r--users/sigul/.gitignore2
-rw-r--r--users/sigul/README.md17
-rw-r--r--users/sigul/config.h21
-rw-r--r--users/sigul/rules.mk8
-rw-r--r--users/sigul/sigul.c100
-rw-r--r--users/sigul/sigul.h42
6 files changed, 0 insertions, 190 deletions
diff --git a/users/sigul/.gitignore b/users/sigul/.gitignore
deleted file mode 100644
index 12165fdbd7..0000000000
--- a/users/sigul/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-secrets.h
-secrets.c
diff --git a/users/sigul/README.md b/users/sigul/README.md
deleted file mode 100644
index a8f705e154..0000000000
--- a/users/sigul/README.md
+++ /dev/null
@@ -1,17 +0,0 @@
-Copyright 2020 Silvio Gulizia [email protected] @sigul
-
-Userspace by Silvio Gulizia
-Contains code for ANSI / Italian layouts.
-
-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/sigul/config.h b/users/sigul/config.h
deleted file mode 100644
index dc0cd0f070..0000000000
--- a/users/sigul/config.h
+++ /dev/null
@@ -1,21 +0,0 @@
-#pragma once
-
-// My custom configurations
-#define TAPPING_TOGGLE 3 // enable tapping toggle, used to lock level with a custom keycode defined by TT (in my case RAISE, LOWER and MOUSE)
-#define USB_MAX_POWER_CONSUMPTION 100 // required to be able to use the keyboard with iPad
-
-// Settings for using the keybaord as a mouse
-#define MOUSEKEY_DELAY 30
-// Delay between pressing a movement key and cursor movement
-#define MOUSEKEY_INTERVAL 16
-// Time between cursor movements
-#define MOUSEKEY_MAX_SPEED 3
-// Maximum cursor speed at which acceleration stops
-#define MOUSEKEY_TIME_TO_MAX 40
-// Time until maximum cursor speed is reached
-#define MOUSEKEY_WHEEL_MAX_SPEED 0
-// Maximum number of scroll steps per scroll action
-#define MOUSEKEY_WHEEL_TIME_TO_MAX 0
-// Time until maximum scroll speed is reached
-
-#define MACRO_TIMER 5
diff --git a/users/sigul/rules.mk b/users/sigul/rules.mk
deleted file mode 100644
index e272957d0a..0000000000
--- a/users/sigul/rules.mk
+++ /dev/null
@@ -1,8 +0,0 @@
-SRC += sigul.c
-MOUSEKEY_ENABLE = yes
-
-ifneq ($(strip $(NO_SECRETS)), yes)
- ifneq ("$(wildcard $(USER_PATH)/secrets.c)","")
- SRC += secrets.c
- endif
-endif
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);
-};
-
diff --git a/users/sigul/sigul.h b/users/sigul/sigul.h
deleted file mode 100644
index 8f806017cc..0000000000
--- a/users/sigul/sigul.h
+++ /dev/null
@@ -1,42 +0,0 @@
-#pragma once
-
-#include "quantum.h"
-
-enum userspace_layers {
- _QWERTY,
- _LOWER, //symbols
- _RAISE, //numbers
- _ADJUST, //system
- _NUMPAD,
- _FN,
- _MOUSE
-};
-
-enum userspace_custom_keycodes {
- QWERTY = SAFE_RANGE,
- // custom keycodes for an Italian ANSI layout with accented vowels
- IT_CMLS, // IT_COMM and IT_LABK when combined with shift
- IT_DTMR, // IT_DOT and IT_RABK when combined with shift
- IT_SLQS, // IT_SLSH and IT_QUES when combined with shift
- IT_APDQ, // IT_APO and IT_DQUO when combined with shift
- IT_SCCL, // IT_SMCL and IT_COLN when combined with shift
- SECRET0,
- SECRET1,
- SECRET2,
- SECRET3,
- SECRET4,
- SECRET5,
- NEW_SAFE_RANGE // start new keyboard-level declarations with NEW_SAFE_RANGE
-};
-
-// Defining Layer Keycodes
-#define QWERTY DF(_QWERTY)
-// For LOWER and RAISE I use TT instead of MO to be able to lock those layer tapping three times the key (TAPPING_TOGGLE 3 has been added in sigul.h)
-#define LOWER TT(_LOWER)
-#define RAISE TT(_RAISE)
-#define NUMPAD TG(_NUMPAD)
-#define FN MO(_FN)
-#define TABFN LT(_FN, KC_TAB)
-#define ESCFN LT(_FN, KC_ESC)
-#define MS_B LT(_MOUSE, IT_B)
-