13 lines
295 B
Bash
Executable file
13 lines
295 B
Bash
Executable file
#!/usr/bin/env zsh
|
|
|
|
# reset this before setting anything
|
|
setxkbmap us -option
|
|
|
|
if $(lsusb -d '04d9:0125' > /dev/null); then
|
|
layouts='us(altgr-intl),ru(typewriter)'
|
|
else
|
|
layouts='ducky_mini(us),ducky_mini(ru)'
|
|
fi
|
|
opts='grp:win_space_toggle,compose:menu'
|
|
|
|
setxkbmap $layouts -option $opts
|