2017-06-28 15:09:17 +03:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
|
|
|
# reset this before setting anything
|
|
|
|
setxkbmap us -option
|
|
|
|
|
2017-07-26 01:12:47 +03:00
|
|
|
if $(lsusb -d '04d9:0125' > /dev/null) || [[ -n $1 ]]; then
|
2017-06-28 15:09:17 +03:00
|
|
|
layouts='us(altgr-intl),ru(typewriter)'
|
2017-07-26 01:22:22 +03:00
|
|
|
opts='grp:win_space_toggle,compose:menu,ctrl:nocaps'
|
2017-06-28 15:09:17 +03:00
|
|
|
else
|
2017-12-06 14:39:10 +02:00
|
|
|
layouts='us(ducky),ru(ducky)'
|
2017-07-26 01:22:22 +03:00
|
|
|
opts='grp:win_space_toggle,compose:menu'
|
2017-06-28 15:09:17 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
setxkbmap $layouts -option $opts
|