Merge branch '22-switch-to-correct-keyboard-layout-on-start' into 'master'
Resolve "Switch to correct keyboard layout on start" Closes #22 See merge request marty-oehme/dotfiles!7
This commit is contained in:
commit
c15be97efb
1 changed files with 6 additions and 3 deletions
7
.xinitrc
7
.xinitrc
|
@ -36,11 +36,14 @@ fi
|
|||
# (only works for x environment - I haven't needed it for non-x yet)
|
||||
setxkbmap -option ctrl:nocaps
|
||||
# sets default to EURkey layout, with possibility to switch to german
|
||||
# sets german layout to be default for the only pc I have with a german keyboard
|
||||
if [[ $HOST == "marty-desk" ]] || [[ $HOSTNAME == "marty-desk" ]]; then
|
||||
setxkbmap -layout de,eu
|
||||
else
|
||||
setxkbmap -layout eu,de
|
||||
fi
|
||||
# allows switching layouts with alt+space
|
||||
setxkbmap -option grp:alt_shift_toggle
|
||||
# quit out of X with ctrl+alt+backspace
|
||||
setxkbmap -option terminate:ctrl_alt_bksp
|
||||
|
||||
# Makes Capslock behave as escape - when ONLY capslock is pressed and released
|
||||
# this only works when we already substitute a ctrl for caps with the lines above,
|
||||
|
|
Loading…
Reference in a new issue