From e22922e6b542b8bd705b7da0b8651b8740df4e7c Mon Sep 17 00:00:00 2001 From: Von Random Date: Wed, 26 Jul 2017 01:12:47 +0300 Subject: [PATCH] mykblayouts fix --- mykblayouts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mykblayouts b/mykblayouts index 1dd4acf..39e2b2b 100755 --- a/mykblayouts +++ b/mykblayouts @@ -3,11 +3,11 @@ # reset this before setting anything setxkbmap us -option -if $(lsusb -d '04d9:0125' > /dev/null); then +if $(lsusb -d '04d9:0125' > /dev/null) || [[ -n $1 ]]; then layouts='us(altgr-intl),ru(typewriter)' else layouts='ducky_mini(us),ducky_mini(ru)' fi -opts='grp:win_space_toggle,compose:menu' +opts='grp:win_space_toggle,compose:menu,ctrl:nocaps' setxkbmap $layouts -option $opts