Add new scripts

This commit is contained in:
2022-03-18 00:38:39 +03:00
parent 5630243ef1
commit d051d7ddca
19 changed files with 147 additions and 116 deletions

11
scripts/chlayout Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
variant=$(setxkbmap -query | grep variant | cut -d" " -f5)
if [[ $variant == "cdhisopt" ]]
then
setxkbmap us cdhpt -option ''
else
setxkbmap us cdhisopt 'caps:ctrl_modifier'
fi