Skip to content

Commit

Permalink
xkb: Czech letters added to the default "us" layout
Browse files Browse the repository at this point in the history
  • Loading branch information
shvorin committed Mar 17, 2019
1 parent 95a92b0 commit 7cf3183
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .xkb/keymap/custom
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete+caps(shift)+numpad(microsoft)" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+ru(common):2+inet(evdev)+altwin(meta_win)+capslock(grouplock)+level3(ralt_switch)+compose(menu)+terminate(ctrl_alt_bksp)+uscz" };
xkb_geometry { include "pc(pc105)" };
};
23 changes: 23 additions & 0 deletions .xkb/symbols/uscz
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
xkb_symbols "uscz" {

include "us(basic)"
name[Group1]= "English (US) + Czheck";

key <AC01> { [ a, A, aacute, Aacute ] };
key <AD09> { [ o, O, oacute, Oacute ] };
key <AD03> { [ e, E, eacute, Eacute ] };
key <AD06> { [ y, Y, yacute, Yacute ] };
key <AD08> { [ i, I, iacute, Iacute ] };
key <AD07> { [ u, U, uacute, Uacute ] };

key <AB01> { [ z, Z, zcaron, Zcaron ] };
key <AC03> { [ d, D, dcaron, Dcaron ] };
key <AD05> { [ t, T, tcaron, Tcaron ] };
key <AB06> { [ n, N, ncaron, Ncaron ] };
key <AC02> { [ s, S, scaron, Scaron ] };
key <AB03> { [ c, C, ccaron, Ccaron ] };
key <AD04> { [ r, R, rcaron, Rcaron ] };

key <AD01> { [ q, Q, ecaron, Ecaron ] };
key <AD02> { [ w, W, uring, Uring ] };
};
3 changes: 2 additions & 1 deletion .xsession
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
PATH=$HOME/.cabal/bin:$PATH

setxkbmap -layout "us,ru(common)" -option "altwin:meta_win,grp:caps_toggle,numpad:microsoft,caps:shift,compose:menu,terminate:ctrl_alt_bksp"
#setxkbmap -layout "us,ru(common)" -option "altwin:meta_win,grp:caps_toggle,numpad:microsoft,caps:shift,compose:menu,terminate:ctrl_alt_bksp"
xkbcomp -I$HOME/.xkb -R$HOME/.xkb keymap/custom $DISPLAY
xmodmap $HOME/.xmodmaprc

# xautolock -time 5 -locker "xlock -lockdelay 60" -nowlocker xlock &
Expand Down

0 comments on commit 7cf3183

Please sign in to comment.