random script dump
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

14 lines
371 B

#!/usr/bin/env zsh
# reset this before setting anything
setxkbmap us -option
if $(lsusb -d '04d9:0125' > /dev/null) || [[ -n $1 ]]; then
layouts='us(altgr-intl),ru(typewriter)'
opts='grp:win_space_toggle,compose:menu,ctrl:nocaps'
else
layouts='ducky_mini(us),ducky_mini(ru)'
opts='grp:win_space_toggle,compose:menu'
fi
setxkbmap $layouts -option $opts