toggle macbook keyboard gsettings

This commit is contained in:
billy 2024-10-14 12:03:20 -04:00
parent 026776392d
commit 2867357ca1

View File

@ -0,0 +1,11 @@
#!/bin/sh
# No argument = normal keyboard
# With argument = macbook keyboard
if [ $# -eq 0 ]; then
gsettings set org.gnome.desktop.input-sources xkb-options "[]"
echo "Normal keyboard mode"
else
gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:swap_lwin_lctl']"
echo "Macbook keyboard mode"
fi