-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2b6ce7a
Showing
6 changed files
with
622 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
* Kepiho ČUS kláveska | ||
[2017-03-04 So 00:34] | ||
|
||
Klávesnice se chová ve většině ohledů jako standardní US QWERTY klávesnice, ale umožňuje nám psát české znaky bez přepínání klávesnice. Konkrétně rozdíly: | ||
|
||
- na vrchní řadě nepíšeme čísla, ale klasické české ěščř... | ||
- čísla píšeme s pravým Alt | ||
- znaky =ů= je vlevo vedle =ě= a =+= ještě o jeden vedle. | ||
|
||
Lépe vidět v PDF s layoutem [[./cust_cz_us.pdf]] | ||
|
||
Nastavení keyboard layoutu je třeba umístit do souboru [[/usr/share/X11/xkb/symbols/cust_cz_us]] | ||
|
||
#+BEGIN_SRC | ||
|
||
default | ||
xkb_symbols "basic" { | ||
include "us(basic)" | ||
|
||
name[Group1]="Czech (custom US)"; | ||
|
||
key <TLDE> { [ equal, plus, asciitilde, grave] }; | ||
key <AE01> { [ uring, exclam, 1, dead_tilde], | ||
[ 1, exclam, 1, dead_tilde]}; | ||
key <AE02> { [ ecaron, at, 2, dead_caron], | ||
[ 2, at, 2, dead_caron]}; | ||
key <AE03> { [ scaron, numbersign, 3, dead_circumflex], | ||
[ 3, numbersign, 3, dead_circumflex]}; | ||
key <AE04> { [ ccaron, dollar, 4, dead_breve], | ||
[ 4, dollar, 4, dead_breve]}; | ||
key <AE05> { [ rcaron, percent, 5, dead_abovering], | ||
[ 5, percent, 5, dead_abovering]}; | ||
key <AE06> { [ zcaron, asciicircum, 6, dead_ogonek], | ||
[ 6, asciicircum, 6, dead_ogonek]}; | ||
key <AE07> { [ yacute, ampersand, 7, dead_grave], | ||
[ 7, ampersand, 7, dead_grave]}; | ||
key <AE08> { [ aacute, asterisk, 8, dead_abovedot], | ||
[ 8, asterisk, 8, dead_abovedot]}; | ||
key <AE09> { [ iacute, parenleft, 9, dead_acute], | ||
[ 9, parenleft, 9, dead_acute]}; | ||
key <AE10> { [ eacute, parenright, 0, dead_doubleacute], | ||
[ 0, parenright, 0, dead_doubleacute]}; | ||
key <AE12> { [dead_acute, dead_caron, dead_macron, dead_cedilla]}; | ||
|
||
key <AC10> { [ semicolon, colon, uring, NoSymbol ] }; | ||
key <AC11> { [apostrophe, quotedbl, section, ssharp ] }; | ||
|
||
// key <CAPS> { [ ISO_Level5_Shift , BackSpace , Caps_Lock , Caps_Lock , NoSymbol ] }; | ||
// modifier_map Mod3 { ISO_Level5_Shift }; | ||
|
||
// include "capslock(grouplock)" | ||
|
||
replace key <CAPS> { [ ISO_Next_Group, Caps_Lock ] }; | ||
modifier_map Lock { Caps_Lock }; | ||
|
||
include "level3(ralt_switch)" | ||
// include "level5(caps_switch)" | ||
}; | ||
|
||
#+END_SRC | ||
|
||
Dále je třeba nastavit, aby se tato konfigurace použila. XKB Options použijeme k nastavení =Ctrl= namísto =Caps Lock= | ||
|
||
Nastavení klávesnice v debianu standardně v [[/etc/default/keyboard]] | ||
#+BEGIN_SRC sh | ||
# KEYBOARD CONFIGURATION FILE | ||
|
||
# Consult the keyboard(5) manual page. | ||
|
||
XKBMODEL="pc105" | ||
XKBLAYOUT="cust_cz_us" | ||
XKBVARIANT="" | ||
XKBOPTIONS="ralt_switch,terminate:ctrl_alt_bksp,grp_led:scroll,ctrl:nocaps" | ||
BACKSPACE="guess" | ||
#+END_SRC | ||
|
||
A protože je mi to málo, nastavím ještě lepší chování =Caps Lock= kdy při zmáčknutí se chová jako =Esc= a při podržení jako =Ctrl= | ||
|
||
#+BEGIN_SRC sh | ||
xcape -e 'Control_L=Escape' | ||
#+END_SRC | ||
|
||
Nevím jestli je třeba, ale mám to v autostart souboru nastavené historicky takto (zdá se mi, že se duplikuje konfigurace z keyboard) | ||
|
||
#+BEGIN_SRC sh | ||
setxkbmap cust_cz_us -option ralt_switch,terminate:ctrl_alt_bksp,grp_led:scroll,ctrl:nocaps && xcape -e 'Control_L=Escape' | ||
#+END_SRC | ||
|
||
** Vytisknutí layoutu ať se dá prohlídnout kde co je | ||
Nejdříve jsem musel nainstalovat =a2ps= a následně patchnout program =ogonkify= dle http://www.meduna.org/sw_a2ps_en.html abych měl pěkně vytištěný názvy kláves a ne nějaký scaron místo š. | ||
|
||
#+BEGIN_SRC sh :results none | ||
setxkbmap -layout cust_cz_us -print | xkbcomp -xkm - - | xkbprint -color -lc cs_CZ - - | ./tools/ogonkify -XP | ps2pdf - | pdftk - cat 1left output cust_cz_us.pdf | ||
#+END_SRC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
default | ||
xkb_symbols "basic" { | ||
include "us(basic)" | ||
|
||
name[Group1]="Czech (custom US)"; | ||
|
||
key <TLDE> { [ equal, plus, asciitilde, grave] }; | ||
key <AE01> { [ uring, exclam, 1, dead_tilde], | ||
[ 1, exclam, 1, dead_tilde]}; | ||
key <AE02> { [ ecaron, at, 2, dead_caron], | ||
[ 2, at, 2, dead_caron]}; | ||
key <AE03> { [ scaron, numbersign, 3, dead_circumflex], | ||
[ 3, numbersign, 3, dead_circumflex]}; | ||
key <AE04> { [ ccaron, dollar, 4, dead_breve], | ||
[ 4, dollar, 4, dead_breve]}; | ||
key <AE05> { [ rcaron, percent, 5, dead_abovering], | ||
[ 5, percent, 5, dead_abovering]}; | ||
key <AE06> { [ zcaron, asciicircum, 6, dead_ogonek], | ||
[ 6, asciicircum, 6, dead_ogonek]}; | ||
key <AE07> { [ yacute, ampersand, 7, dead_grave], | ||
[ 7, ampersand, 7, dead_grave]}; | ||
key <AE08> { [ aacute, asterisk, 8, dead_abovedot], | ||
[ 8, asterisk, 8, dead_abovedot]}; | ||
key <AE09> { [ iacute, parenleft, 9, dead_acute], | ||
[ 9, parenleft, 9, dead_acute]}; | ||
key <AE10> { [ eacute, parenright, 0, dead_doubleacute], | ||
[ 0, parenright, 0, dead_doubleacute]}; | ||
key <AE12> { [dead_acute, dead_caron, dead_macron, dead_cedilla]}; | ||
|
||
key <AC10> { [ semicolon, colon, uring, NoSymbol ] }; | ||
key <AC11> { [apostrophe, quotedbl, section, ssharp ] }; | ||
|
||
// key <CAPS> { [ ISO_Level5_Shift , BackSpace , Caps_Lock , Caps_Lock , NoSymbol ] }; | ||
// modifier_map Mod3 { ISO_Level5_Shift }; | ||
|
||
// include "capslock(grouplock)" | ||
|
||
replace key <CAPS> { [ ISO_Next_Group, Caps_Lock ] }; | ||
modifier_map Lock { Caps_Lock }; | ||
|
||
include "level3(ralt_switch)" | ||
// include "level5(caps_switch)" | ||
}; | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# KEYBOARD CONFIGURATION FILE | ||
|
||
# Consult the keyboard(5) manual page. | ||
|
||
XKBMODEL="pc105" | ||
XKBLAYOUT="cust_cz_us" | ||
XKBVARIANT="" | ||
#XKBOPTIONS="grp:shift_toggle,lv3:ralt_switch,grp_led:scroll" | ||
XKBOPTIONS="ralt_switch,terminate:ctrl_alt_bksp,grp_led:scroll,ctrl:nocaps" | ||
BACKSPACE="guess" |
Oops, something went wrong.