2017-03-22 09:43:20 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Manage keyboard disposition if TypeMatrix keyboard is available.
|
|
|
|
|
|
|
|
TM_ID="1e54:2030"
|
|
|
|
|
|
|
|
TM_AVAILABLE=$(lsusb | grep -i -- "$TM_ID")
|
|
|
|
|
|
|
|
if [ "${TM_AVAILABLE}" ]; then
|
2021-02-01 14:40:50 +01:00
|
|
|
setxkbmap -model tm2030USB -layout fr -variant bepo \
|
|
|
|
&& exit 0
|
2017-03-22 09:43:20 +01:00
|
|
|
fi
|
|
|
|
|
2021-02-01 14:40:50 +01:00
|
|
|
setxkbmap -model latitude -layout fr -variant bepo
|
|
|
|
|
2017-03-22 09:43:20 +01:00
|
|
|
exit 0
|