diff --git a/mykblayouts b/mykblayouts new file mode 100755 index 0000000..1dd4acf --- /dev/null +++ b/mykblayouts @@ -0,0 +1,13 @@ +#!/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 diff --git a/mykblayouts-dist b/mykblayouts-dist deleted file mode 100755 index efaa3c9..0000000 --- a/mykblayouts-dist +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env zsh -layouts='us,ru' -variants='altgr-intl,typewriter' -opts='ctrl:nocaps,grp:win_space_toggle,compose:menu' - -setxkbmap -layout $layouts -variant $variants -option $opts