dotfiles/scripts/chlayout

12 lines
199 B
Plaintext
Raw Permalink Normal View History

2023-12-25 11:21:57 +01:00
#!/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