Add Polish keymap (#8637)

* Add Polish keymap

* Fix wrong AltGr mapping

* These are ogoneks, not cedillas

* Too many !s

* ANSI

* Just use BSLS

* Move BSLS

* Move PIPE

* Fix some incorrect names in keymap_slovak.h

Thanks to vomindoraan
daktil_manuform
Ryan 2020-04-05 17:55:13 +10:00 committed by GitHub
parent ccb37f673a
commit 28a6a4a15b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 156 additions and 4 deletions

View File

@ -0,0 +1,152 @@
/* Copyright 2020
*
* 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 "keymap.h"
// clang-format off
/*
*
*  `  1  2  3  4  5  6  7  8  9  0  -  =        
*
*       Q  W  E  R  T  Y  U  I  O  P  [  ]   \  
*
*        A  S  D  F  G  H  J  K  L  ;  '         
*
*          Z  X  C  V  B  N  M  ,  .  /           
*
*                                                     
*
*/
// Row 1
#define PL_GRV KC_GRV // `
#define PL_1 KC_1 // 1
#define PL_2 KC_2 // 2
#define PL_3 KC_3 // 3
#define PL_4 KC_4 // 4
#define PL_5 KC_5 // 5
#define PL_6 KC_6 // 6
#define PL_7 KC_7 // 7
#define PL_8 KC_8 // 8
#define PL_9 KC_9 // 9
#define PL_0 KC_0 // 0
#define PL_MINS KC_MINS // -
#define PL_EQL KC_EQL // =
// Row 2
#define PL_Q KC_Q // Q
#define PL_W KC_W // W
#define PL_E KC_E // E
#define PL_R KC_R // R
#define PL_T KC_T // T
#define PL_Y KC_Y // Y
#define PL_U KC_U // U
#define PL_I KC_I // I
#define PL_O KC_O // O
#define PL_P KC_P // P
#define PL_LBRC KC_LBRC // [
#define PL_RBRC KC_RBRC // ]
#define PL_BSLS KC_BSLS // (backslash)
// Row 3
#define PL_A KC_A // A
#define PL_S KC_S // S
#define PL_D KC_D // D
#define PL_F KC_F // F
#define PL_G KC_G // G
#define PL_H KC_H // H
#define PL_J KC_J // J
#define PL_K KC_K // K
#define PL_L KC_L // L
#define PL_SCLN KC_SCLN // ;
#define PL_QUOT KC_QUOT // '
// Row 4
#define PL_Z KC_Z // Z
#define PL_X KC_X // X
#define PL_C KC_C // C
#define PL_V KC_V // V
#define PL_B KC_B // B
#define PL_N KC_N // N
#define PL_M KC_M // M
#define PL_COMM KC_COMM // ,
#define PL_DOT KC_DOT // .
#define PL_SLSH KC_SLSH // /
/* Shifted symbols
*
*  ~  !  @  #  $  %  ^  &  *  (  )  _  +        
*
*                                     {  }   |  
*
*                                   :  " │        │
*
*                               <  >  ?           
*
*                                                     
*
*/
// Row 1
#define PL_TILD S(PL_GRV) // ~
#define PL_EXLM S(PL_1) // !
#define PL_AT S(PL_2) // @
#define PL_HASH S(PL_3) // #
#define PL_DLR S(PL_4) // $
#define PL_PERC S(PL_5) // %
#define PL_CIRC S(PL_6) // ^
#define PL_AMPR S(PL_7) // &
#define PL_ASTR S(PL_8) // *
#define PL_LPRN S(PL_9) // (
#define PL_RPRN S(PL_0) // )
#define PL_UNDS S(PL_MINS) // _
#define PL_PLUS S(PL_EQL) // +
// Row 2
#define PL_LCBR S(PL_LBRC) // {
#define PL_RCBR S(PL_RBRC) // }
#define PL_PIPE S(PL_BSLS) // |
// Row 3
#define PL_COLN S(PL_SCLN) // :
#define PL_DQUO S(PL_QUOT) // "
// Row 4
#define PL_LABK S(PL_COMM) // <
#define PL_RABK S(PL_DOT) // >
#define PL_QUES S(PL_SLSH) // ?
/* AltGr symbols
*
*                                               
*
*             Ę                Ó               
*
*        Ą  Ś                    Ł               
*
*          Ż  Ź  Ć        Ń                       
*
*                                                     
*
*/
// Row 2
#define PL_EOGO ALGR(PL_E) // Ę
#define PL_EURO ALGR(PL_U) // €
#define PL_OACU ALGR(PL_O) // Ó
// Row 3
#define PL_AOGO ALGR(PL_A) // Ą
#define PL_SACU ALGR(PL_S) // Ś
#define PL_LSTR ALGR(PL_L) // Ł
// Row 4
#define PL_ZDOT ALGR(PL_Z) // Ż
#define PL_ZACU ALGR(PL_X) // Ź
#define PL_CACU ALGR(PL_C) // Ć
#define PL_NACU ALGR(PL_N) // Ń

View File

@ -36,10 +36,10 @@
// Row 1
#define SK_SCLN KC_GRV // ;
#define SK_PLUS KC_1 // +
#define SK_LACU KC_2 // ľ
#define SK_LCAR KC_2 // ľ
#define SK_SCAR KC_3 // š
#define SK_CCAR KC_4 // č
#define SK_TACU KC_5 // ť
#define SK_TCAR KC_5 // ť
#define SK_ZCAR KC_6 // ž
#define SK_YACU KC_7 // ý
#define SK_AACU KC_8 // á
@ -141,10 +141,10 @@
*/
// Row 1
#define SK_TILD ALGR(SK_PLUS) // ~
#define SK_CIRC ALGR(SK_LACU) // ^ (dead)
#define SK_CIRC ALGR(SK_LCAR) // ^ (dead)
#define SK_BREV ALGR(SK_SCAR) // ˘ (dead)
#define SK_RNGA ALGR(SK_CCAR) // ° (dead)
#define SK_OGON ALGR(SK_TACU) // ˛ (dead)
#define SK_OGON ALGR(SK_TCAR) // ˛ (dead)
#define SK_GRV ALGR(SK_ZCAR) // `
#define SK_DOTA ALGR(SK_YACU) // ˙ (dead)
#define SK_DACU ALGR(SK_EACU) // ˝ (dead)