[X] Correctly detect laptop or desktop for key map
While shellcheck complains that posix does not know about HOSTNAME env var, it seems to be required for zsh/bash.
This commit is contained in:
parent
90fcf81dfd
commit
cfcd458427
1 changed files with 4 additions and 3 deletions
|
@ -36,10 +36,11 @@ fi
|
||||||
setxkbmap -option ctrl:nocaps
|
setxkbmap -option ctrl:nocaps
|
||||||
# sets default to EURkey layout, with possibility to switch to german
|
# 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
|
# sets german layout to be default for the only pc I have with a german keyboard
|
||||||
if [ "$HOST" = "marty-desk" ]; then
|
# shellcheck disable=2039
|
||||||
setxkbmap -layout de,eu
|
if [ "$HOST" = "lidell" ] || [ "$HOSTNAME" = "lidell" ]; then
|
||||||
else
|
|
||||||
setxkbmap -layout eu,de
|
setxkbmap -layout eu,de
|
||||||
|
else
|
||||||
|
setxkbmap -layout de,eu
|
||||||
fi
|
fi
|
||||||
# allows switching layouts with alt+space
|
# allows switching layouts with alt+space
|
||||||
setxkbmap -option grp:alt_shift_toggle
|
setxkbmap -option grp:alt_shift_toggle
|
||||||
|
|
Loading…
Reference in a new issue