summaryrefslogtreecommitdiff
path: root/planck
diff options
context:
space:
mode:
authorChristoph Cullmann <christoph@cullmann.io>2024-09-20 23:02:57 +0200
committerChristoph Cullmann <christoph@cullmann.io>2024-09-20 23:02:57 +0200
commit8980edbc88646e803625ad89308d313b436fd389 (patch)
tree2084ffe862898a2cc3763ce50f919ae9aee6c5f4 /planck
parent1dd365e10eff31e0d813fdf99f9a3788615c800a (diff)
use code of https://github.com/filterpaper/qmk_userspace
Diffstat (limited to 'planck')
-rw-r--r--planck/config.h17
-rw-r--r--planck/keymap.c23
2 files changed, 4 insertions, 36 deletions
diff --git a/planck/config.h b/planck/config.h
index 9093362..f7ca78d 100644
--- a/planck/config.h
+++ b/planck/config.h
@@ -1,18 +1,5 @@
-/* Copyright 2022 Christoph Cullmann
- *
- * 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/>.
- */
+// Copyright Christoph Cullmann
+// SPDX-License-Identifier: GPL-2.0+
#pragma once
diff --git a/planck/keymap.c b/planck/keymap.c
index 2666e77..90243ac 100644
--- a/planck/keymap.c
+++ b/planck/keymap.c
@@ -1,27 +1,8 @@
-/* Copyright 2022 Christoph Cullmann
- *
- * 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/>.
- */
+// Copyright Christoph Cullmann
+// SPDX-License-Identifier: GPL-2.0+
#include QMK_KEYBOARD_H
-// Returns true if `pos` on the left hand of the keyboard, false if right.
-static bool on_left_hand(keypos_t pos)
-{
- return (pos.row < 3) || (pos.row == 3 && pos.col < 3) || (pos.row == 7 && pos.col > 2);
-}
-
// layout helper macro, we just use 42 keys
#undef LAYOUT
#define LAYOUT(\